@@ -1514,7 +1514,7 @@ impl BlockView {
15141514 && ( block. status == ToolStatus :: Pending || block. status == ToolStatus :: Running ) ;
15151515
15161516 // --- Build the element ---
1517- let mut container = div ( ) . w_full ( ) ;
1517+ let mut container = div ( ) . w_full ( ) . mt_0p5 ( ) ;
15181518
15191519 // Header line: clickable area with icon + description + chevron-on-hover
15201520 let header = div ( )
@@ -1629,6 +1629,7 @@ impl Render for BlockView {
16291629 fn render ( & mut self , window : & mut gpui:: Window , cx : & mut Context < Self > ) -> impl IntoElement {
16301630 match self . block . clone ( ) {
16311631 BlockData :: TextBlock ( block) => div ( )
1632+ . mt_3 ( )
16321633 . text_color ( cx. theme ( ) . foreground )
16331634 . child ( self . markdown_view ( & block. content , true , cx) )
16341635 . into_any_element ( ) ,
@@ -1664,6 +1665,7 @@ impl Render for BlockView {
16641665 let text_color = cx. theme ( ) . info_foreground ;
16651666
16661667 div ( )
1668+ . mt_2 ( )
16671669 . rounded_md ( )
16681670 . bg ( thinking_bg)
16691671 . flex ( )
@@ -1828,24 +1830,29 @@ impl Render for BlockView {
18281830 window,
18291831 cx,
18301832 ) {
1831- return element;
1833+ return div ( ) . mt_2 ( ) . child ( element) . into_any_element ( ) ;
18321834 }
18331835 // Renderer returned None (e.g. parameters still
18341836 // streaming) — show a skeleton card with just
18351837 // the header so we don't flash a raw "[name]"
18361838 // placeholder.
1837- return self . render_card_skeleton (
1838- & block,
1839- renderer. as_ref ( ) ,
1840- & theme,
1841- ) ;
1839+ return div ( )
1840+ . mt_2 ( )
1841+ . child ( self . render_card_skeleton (
1842+ & block,
1843+ renderer. as_ref ( ) ,
1844+ & theme,
1845+ ) )
1846+ . into_any_element ( ) ;
18421847 }
18431848 }
18441849 } else {
18451850 tracing:: warn!( "No ToolBlockRenderer registered for tool '{}'" , block. name) ;
18461851 }
18471852 }
1853+
18481854 div ( )
1855+ . mt_0p5 ( )
18491856 . px_2 ( )
18501857 . py_1 ( )
18511858 . text_color ( cx. theme ( ) . muted_foreground )
@@ -1926,6 +1933,7 @@ impl Render for BlockView {
19261933 }
19271934
19281935 div ( )
1936+ . mt_2 ( )
19291937 . rounded_md ( )
19301938 . border_1 ( )
19311939 . border_color ( cx. theme ( ) . border )
@@ -1939,8 +1947,8 @@ impl Render for BlockView {
19391947 }
19401948 BlockData :: ImageBlock ( block) => {
19411949 if let Some ( image) = & block. image {
1942- // Render the actual image - margins/spacing handled by parent container
19431950 div ( )
1951+ . mt_2 ( )
19441952 . flex_none ( ) // Don't grow or shrink
19451953 . child (
19461954 div ( )
@@ -1960,6 +1968,7 @@ impl Render for BlockView {
19601968 } else {
19611969 // Fallback to placeholder if image parsing failed
19621970 div ( )
1971+ . mt_2 ( )
19631972 . flex_none ( )
19641973 . p_2 ( )
19651974 . bg ( cx. theme ( ) . warning . opacity ( 0.1 ) )
0 commit comments