@@ -13,7 +13,7 @@ use std::path::PathBuf;
13
13
use std:: sync:: { Arc , LazyLock , Mutex , mpsc} ;
14
14
use std:: time:: Duration ;
15
15
16
- use iced:: widget:: { self , Column , Space , button, column, container, row, text} ;
16
+ use iced:: widget:: { self , Column , Space , button, column, container, row, scrollable , text} ;
17
17
use iced:: { Element , Fill , Font , Subscription , Task , Theme , clipboard, font} ;
18
18
use tracing:: { debug, error, info, instrument, trace} ;
19
19
use uuid:: Uuid ;
@@ -400,7 +400,15 @@ fn view(state: &State) -> Element<'_, Message> {
400
400
]
401
401
. spacing ( 10 ) ;
402
402
403
- container (
403
+ // currently entire block is inside scrollable because when only profiles
404
+ // list is in scrollable it moves buttons below it outside of screen
405
+ //
406
+ // scrollable(profiles).height(Fill) helps, but it remains the same heigth
407
+ // when list is small
408
+ //
409
+ // scrollable(profiles).height(Shrink) fixes problem with small list, but
410
+ // does not help with initial problem. probably this is a bug in iced
411
+ container ( scrollable (
404
412
column ! [
405
413
top_block,
406
414
Column :: from_iter( profiles) ,
@@ -409,7 +417,7 @@ fn view(state: &State) -> Element<'_, Message> {
409
417
bottom_block,
410
418
]
411
419
. spacing ( 10 ) ,
412
- )
420
+ ) )
413
421
. padding ( 10 )
414
422
. center_x ( Fill )
415
423
. center_y ( Fill )
0 commit comments