File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -1319,14 +1319,10 @@ where
13191319 row ! [
13201320 list_item
13211321 . checked
1322- . map( |is_checked| {
1323- Element :: from(
1324- checkbox( "" , is_checked)
1325- . spacing( 0 )
1326- . text_size( settings. text_size) ,
1327- )
1328- } )
1329- . unwrap_or( Element :: from(
1322+ . map( |is_checked| Element :: from(
1323+ checkbox( is_checked) . text_size( settings. text_size)
1324+ ) )
1325+ . unwrap_or_else( || Element :: from(
13301326 text( "•" )
13311327 . width( settings. text_size)
13321328 . center( )
@@ -1371,16 +1367,14 @@ where
13711367 . map( |is_checked| {
13721368 Element :: from(
13731369 container(
1374- checkbox( "" , is_checked)
1375- . spacing( 0 )
1376- . text_size( settings. text_size) ,
1370+ checkbox( is_checked) . text_size( settings. text_size) ,
13771371 )
13781372 . align_right(
13791373 settings. text_size * ( ( digits / 2.0 ) . ceil( ) + 1.0 ) ,
13801374 ) ,
13811375 )
13821376 } )
1383- . unwrap_or ( Element :: from(
1377+ . unwrap_or_else ( || Element :: from(
13841378 text!( "{}." , i as u64 + start)
13851379 . size( settings. text_size)
13861380 . align_x( alignment:: Horizontal :: Right )
You can’t perform that action at this time.
0 commit comments