Skip to content

Commit 711ca92

Browse files
committed
fix agglomerate bars length in inspect page
1 parent 6fccc1c commit 711ca92

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/gui/pages/inspect_page.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ fn get_agglomerates_row<'a>(
556556
let tot_bytes = tot.tot_bytes();
557557

558558
let (in_length, out_length) = get_bars_length(chart_type, &tot, &tot);
559-
let bars = get_bars(in_length, out_length);
559+
let bars = get_bars(in_length, out_length).width(ReportCol::FILTER_COLUMNS_WIDTH);
560560

561561
let bytes_col = Column::new()
562562
.align_x(Alignment::Center)

src/report/types/report_col.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ impl ReportCol {
4141
ReportCol::Packets,
4242
];
4343

44+
pub(crate) const FILTER_COLUMNS_WIDTH: f32 = 4.0 * SMALL_COL_WIDTH + 2.0 * LARGE_COL_WIDTH;
45+
4446
pub(crate) fn get_title(&self, language: Language) -> String {
4547
match self {
4648
ReportCol::SrcIp | ReportCol::DstIp => address_translation(language).to_string(),

0 commit comments

Comments
 (0)