@@ -24,9 +24,9 @@ use crate::report::get_report_entries::{get_host_entries, get_service_entries};
24
24
use crate :: report:: types:: search_parameters:: SearchParameters ;
25
25
use crate :: report:: types:: sort_type:: SortType ;
26
26
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,
30
30
} ;
31
31
use crate :: translations:: translations_2:: {
32
32
data_representation_translation, dropped_translation, host_translation,
@@ -446,10 +446,7 @@ fn col_info<'a>(sniffer: &Sniffer) -> Container<'a, Message, StyleType> {
446
446
. push (
447
447
Scrollable :: with_direction (
448
448
col_device,
449
- Direction :: Both {
450
- vertical : ScrollbarType :: properties ( ) ,
451
- horizontal : ScrollbarType :: properties ( ) ,
452
- } ,
449
+ Direction :: Horizontal ( ScrollbarType :: properties ( ) ) ,
453
450
)
454
451
. width ( Length :: Fill ) ,
455
452
)
@@ -500,40 +497,15 @@ fn col_device<'a>(
500
497
#[ cfg( target_os = "windows" ) ]
501
498
let cs_info = cs. get_desc ( ) . unwrap_or ( cs. get_name ( ) ) ;
502
499
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
-
527
500
Column :: new ( )
528
- . padding ( Padding :: ZERO . right ( 15 ) )
501
+ . height ( Length :: Fill )
529
502
. spacing ( 10 )
530
503
. push ( TextType :: highlighted_subtitle_with_desc (
531
504
cs. title ( language) ,
532
505
& cs_info,
533
506
font,
534
507
) )
535
508
. push ( link_type. link_type_col ( language, font) )
536
- . push_maybe ( address_col)
537
509
}
538
510
539
511
fn col_data_representation < ' a > (
0 commit comments