@@ -14,8 +14,7 @@ use pathfinder_geometry::vector::vec2f;
1414use warp_core:: send_telemetry_from_ctx;
1515use warpui:: elements:: {
1616 Border , ChildAnchor , ChildView , Container , CornerRadius , CrossAxisAlignment , Empty , Flex ,
17- MainAxisSize , OffsetPositioning , ParentAnchor , ParentElement , ParentOffsetBounds , Radius ,
18- Stack , Text ,
17+ OffsetPositioning , ParentAnchor , ParentElement , ParentOffsetBounds , Radius , Stack , Text , Wrap ,
1918} ;
2019use warpui:: keymap:: FixedBinding ;
2120use warpui:: {
@@ -1332,18 +1331,22 @@ fn render_agents_section(state: &RunAgentsEditState, app: &AppContext) -> Box<dy
13321331 . with_color ( blended_colors:: text_disabled ( theme, theme. background ( ) ) )
13331332 . finish ( ) ;
13341333
1335- let mut pills_row = Flex :: row ( )
1334+ let pills_row = Wrap :: row ( )
13361335 . with_cross_axis_alignment ( CrossAxisAlignment :: Center )
1337- . with_main_axis_size ( MainAxisSize :: Min )
1338- . with_spacing ( 4. ) ;
1339- for cfg in & state. agent_run_configs {
1340- pills_row. add_child ( render_static_agent_pill ( & cfg. name , app) ) ;
1341- }
1336+ . with_spacing ( 4. )
1337+ . with_run_spacing ( 4. )
1338+ . with_children (
1339+ state
1340+ . agent_run_configs
1341+ . iter ( )
1342+ . map ( |cfg| render_static_agent_pill ( & cfg. name , app) ) ,
1343+ )
1344+ . finish ( ) ;
13421345
13431346 Flex :: column ( )
13441347 . with_cross_axis_alignment ( CrossAxisAlignment :: Stretch )
13451348 . with_child ( Container :: new ( label) . with_margin_bottom ( 6. ) . finish ( ) )
1346- . with_child ( pills_row. finish ( ) )
1349+ . with_child ( pills_row)
13471350 . finish ( )
13481351}
13491352
0 commit comments