File tree Expand file tree Collapse file tree 1 file changed +23
-20
lines changed
cosmic-applet-notifications/src Expand file tree Collapse file tree 1 file changed +23
-20
lines changed Original file line number Diff line number Diff line change @@ -359,31 +359,34 @@ impl Application for Notifications {
359
359
}
360
360
None => row![ app_name, duration_since] ,
361
361
} ,
362
- text( if n. summary. len( ) > 77 {
363
- Cow :: from( format!(
364
- "{:.80}..." ,
365
- n. summary. lines( ) . next( ) . unwrap_or_default( )
366
- ) )
367
- } else {
368
- Cow :: from( & n. summary)
369
- } )
370
- . size( 14 )
371
- . width( Length :: Fixed ( 300.0 ) ) ,
372
- text( if n. body. len( ) > 77 {
373
- Cow :: from( format!(
374
- "{:.80}..." ,
375
- n. body. lines( ) . next( ) . unwrap_or_default( )
376
- ) )
377
- } else {
378
- Cow :: from( & n. body)
379
- } )
380
- . size( 12 )
381
- . width( Length :: Fixed ( 300.0 ) ) ,
362
+ column![
363
+ text( if n. summary. len( ) > 77 {
364
+ Cow :: from( format!(
365
+ "{:.80}..." ,
366
+ n. summary. lines( ) . next( ) . unwrap_or_default( )
367
+ ) )
368
+ } else {
369
+ Cow :: from( & n. summary)
370
+ } )
371
+ . width( Length :: Fill )
372
+ . size( 14 ) ,
373
+ text( if n. body. len( ) > 77 {
374
+ Cow :: from( format!(
375
+ "{:.80}..." ,
376
+ n. body. lines( ) . next( ) . unwrap_or_default( )
377
+ ) )
378
+ } else {
379
+ Cow :: from( & n. body)
380
+ } )
381
+ . width( Length :: Fill )
382
+ . size( 12 )
383
+ ]
382
384
)
383
385
. spacing( 8 )
384
386
. into( ) ] )
385
387
. padding ( 16 )
386
388
. on_press ( Message :: Dismissed ( n. id ) )
389
+ . width ( Length :: Fill )
387
390
. into ( ) ,
388
391
) ;
389
392
}
You can’t perform that action at this time.
0 commit comments