Skip to content

Commit bd10b75

Browse files
committed
partially revert fab87b0
1 parent a610ad8 commit bd10b75

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

src/gui/pages/overview_page.rs

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ use crate::report::get_report_entries::{get_host_entries, get_service_entries};
2424
use crate::report::types::search_parameters::SearchParameters;
2525
use crate::report::types::sort_type::SortType;
2626
use crate::translations::translations::{
27-
active_filters_translation, address_translation, addresses_translation, error_translation,
28-
incoming_translation, no_addresses_translation, none_translation, outgoing_translation,
29-
some_observed_translation, traffic_rate_translation, waiting_translation,
27+
active_filters_translation, error_translation, incoming_translation, no_addresses_translation,
28+
none_translation, outgoing_translation, some_observed_translation, traffic_rate_translation,
29+
waiting_translation,
3030
};
3131
use crate::translations::translations_2::{
3232
data_representation_translation, dropped_translation, host_translation,
@@ -446,10 +446,7 @@ fn col_info<'a>(sniffer: &Sniffer) -> Container<'a, Message, StyleType> {
446446
.push(
447447
Scrollable::with_direction(
448448
col_device,
449-
Direction::Both {
450-
vertical: ScrollbarType::properties(),
451-
horizontal: ScrollbarType::properties(),
452-
},
449+
Direction::Horizontal(ScrollbarType::properties()),
453450
)
454451
.width(Length::Fill),
455452
)
@@ -500,40 +497,15 @@ fn col_device<'a>(
500497
#[cfg(target_os = "windows")]
501498
let cs_info = cs.get_desc().unwrap_or(cs.get_name());
502499

503-
let addresses = cs.get_addresses();
504-
let address_title = match addresses.len() {
505-
1 => address_translation(language),
506-
_ => addresses_translation(language),
507-
};
508-
let mut address_info = String::new();
509-
for address in addresses {
510-
let _ = writeln!(address_info, " {}", address.addr);
511-
}
512-
let address_col = if addresses.is_empty() {
513-
None
514-
} else {
515-
Some(
516-
Column::new()
517-
.push(
518-
Text::new(format!("{address_title}:"))
519-
.class(TextType::Subtitle)
520-
.font(font),
521-
)
522-
.push(Text::new(address_info).font(font))
523-
.push(Space::with_height(15)),
524-
)
525-
};
526-
527500
Column::new()
528-
.padding(Padding::ZERO.right(15))
501+
.height(Length::Fill)
529502
.spacing(10)
530503
.push(TextType::highlighted_subtitle_with_desc(
531504
cs.title(language),
532505
&cs_info,
533506
font,
534507
))
535508
.push(link_type.link_type_col(language, font))
536-
.push_maybe(address_col)
537509
}
538510

539511
fn col_data_representation<'a>(

0 commit comments

Comments
 (0)