@@ -1644,47 +1644,41 @@ impl AcpThreadView {
1644
1644
let key = ( entry_ix, chunk_ix) ;
1645
1645
1646
1646
let is_open = self . expanded_thinking_blocks . contains ( & key) ;
1647
- let editor_bg = cx. theme ( ) . colors ( ) . editor_background ;
1648
- let gradient_overlay = div ( )
1649
- . rounded_b_lg ( )
1650
- . h_full ( )
1651
- . absolute ( )
1652
- . w_full ( )
1653
- . bottom_0 ( )
1654
- . left_0 ( )
1655
- . bg ( linear_gradient (
1656
- 180. ,
1657
- linear_color_stop ( editor_bg, 1. ) ,
1658
- linear_color_stop ( editor_bg. opacity ( 0.2 ) , 0. ) ,
1659
- ) ) ;
1660
1647
1661
1648
let scroll_handle = self
1662
1649
. entry_view_state
1663
1650
. read ( cx)
1664
1651
. entry ( entry_ix)
1665
1652
. and_then ( |entry| entry. scroll_handle_for_assistant_message_chunk ( chunk_ix) ) ;
1666
1653
1654
+ let thinking_content = {
1655
+ div ( )
1656
+ . id ( ( "thinking-content" , chunk_ix) )
1657
+ . when_some ( scroll_handle, |this, scroll_handle| {
1658
+ this. track_scroll ( & scroll_handle)
1659
+ } )
1660
+ . when ( !is_open, |this| this. max_h_12 ( ) . opacity ( 0.6 ) )
1661
+ . text_ui_sm ( cx)
1662
+ . overflow_hidden ( )
1663
+ . child (
1664
+ self . render_markdown ( chunk, default_markdown_style ( false , false , window, cx) ) ,
1665
+ )
1666
+ } ;
1667
+
1667
1668
v_flex ( )
1668
- . rounded_md ( )
1669
- . border_1 ( )
1670
- . border_color ( self . tool_card_border_color ( cx) )
1669
+ . gap_1 ( )
1671
1670
. child (
1672
1671
h_flex ( )
1673
1672
. id ( header_id)
1674
1673
. group ( & card_header_id)
1675
1674
. relative ( )
1676
1675
. w_full ( )
1677
- . py_0p5 ( )
1678
- . px_1p5 ( )
1679
- . rounded_t_md ( )
1680
- . bg ( self . tool_card_header_bg ( cx) )
1681
1676
. justify_between ( )
1682
- . border_b_1 ( )
1683
- . border_color ( self . tool_card_border_color ( cx) )
1684
1677
. child (
1685
1678
h_flex ( )
1686
1679
. h ( window. line_height ( ) )
1687
1680
. gap_1p5 ( )
1681
+ . overflow_hidden ( )
1688
1682
. child (
1689
1683
Icon :: new ( IconName :: ToolThink )
1690
1684
. size ( IconSize :: Small )
@@ -1698,7 +1692,7 @@ impl AcpThreadView {
1698
1692
if pending {
1699
1693
this. child ( "Thinking" )
1700
1694
} else {
1701
- this. child ( "Thought Process " )
1695
+ this. child ( "Thought" )
1702
1696
}
1703
1697
} ) ,
1704
1698
) ,
@@ -1730,28 +1724,17 @@ impl AcpThreadView {
1730
1724
}
1731
1725
} ) ) ,
1732
1726
)
1733
- . child (
1734
- div ( )
1735
- . relative ( )
1736
- . bg ( editor_bg)
1737
- . rounded_b_lg ( )
1738
- . child (
1739
- div ( )
1740
- . id ( ( "thinking-content" , chunk_ix) )
1741
- . when_some ( scroll_handle, |this, scroll_handle| {
1742
- this. track_scroll ( & scroll_handle)
1743
- } )
1744
- . p_2 ( )
1745
- . when ( !is_open, |this| this. max_h_20 ( ) )
1746
- . text_ui_sm ( cx)
1747
- . overflow_hidden ( )
1748
- . child ( self . render_markdown (
1749
- chunk,
1750
- default_markdown_style ( false , false , window, cx) ,
1751
- ) ) ,
1752
- )
1753
- . when ( !is_open && pending, |this| this. child ( gradient_overlay) ) ,
1754
- )
1727
+ . when ( is_open, |this| {
1728
+ this. child (
1729
+ div ( )
1730
+ . relative ( )
1731
+ . ml_1p5 ( )
1732
+ . pl_3p5 ( )
1733
+ . border_l_1 ( )
1734
+ . border_color ( self . tool_card_border_color ( cx) )
1735
+ . child ( thinking_content) ,
1736
+ )
1737
+ } )
1755
1738
. into_any_element ( )
1756
1739
}
1757
1740
@@ -1924,7 +1907,7 @@ impl AcpThreadView {
1924
1907
. when ( has_location || use_card_layout, |this| this. px_1 ( ) )
1925
1908
. when ( has_location, |this| {
1926
1909
this. cursor ( CursorStyle :: PointingHand )
1927
- . rounded_sm ( )
1910
+ . rounded ( rems_from_px ( 3. ) ) // Concentric border radius
1928
1911
. hover ( |s| s. bg ( cx. theme ( ) . colors ( ) . element_hover . opacity ( 0.5 ) ) )
1929
1912
} )
1930
1913
. overflow_hidden ( )
@@ -4247,7 +4230,7 @@ impl AcpThreadView {
4247
4230
return h_flex ( ) . id ( "thread-controls-container" ) . child (
4248
4231
div ( )
4249
4232
. py_2 ( )
4250
- . px_5 ( )
4233
+ . px ( rems_from_px ( 22. ) )
4251
4234
. child ( SpinnerLabel :: new ( ) . size ( LabelSize :: Small ) ) ,
4252
4235
) ;
4253
4236
}
0 commit comments