BlueGit

ict rusty-teams

fix(chat): history runs down to the composer input edge

- Composer has no top padding, so the timeline clips at the input box itself
- The 8 px gap above the input moves into the list bottom padding
- Proposal card keeps its gap to the input

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-11 · 2 weeks ago

Hash
35a8e2839783e244470da9159a22618ce39cf3b4
Parent
d8e94098
2 files changed +12 −7
crates/app/src/views/composer.rs +1 −1
@@ -3138,7 +3138,7 @@ impl Render for Composer {
3138 3138 let (inset, top, bottom) = if self.inline {
3139 3139 (0., 0., 0.)
3140 3140 } else {
3141 (20., 8., 16.)
3141 (20., 0., 16.)
3142 3142 };
3143 3143 v_flex()
3144 3144 .w_full()
@@ -3138,7 +3138,7 @@ impl Render for Composer {
3138 let (inset, top, bottom) = if self.inline {
3138 let (inset, top, bottom) = if self.inline {
3139 (0., 0., 0.)
3139 (0., 0., 0.)
3140 } else {
3140 } else {
3141 (20., 8., 16.)
3141 (20., 0., 16.)
3142 };
3142 };
3143 v_flex()
3143 v_flex()
3144 .w_full()
3144 .w_full()
crates/app/src/views/conversation.rs +11 −6
@@ -146,6 +146,7 @@ const PROGRESS_BAR_WIDTH: f32 = 0.35;
146 146 const TYPING_BUBBLE_HEIGHT: f32 = 28.;
147 147 const TYPING_BUBBLE_PADDING: f32 = 12.;
148 148 const TYPING_SIDE_INSET: f32 = 20.;
149 const COMPOSER_TOP_GAP: f32 = 8.;
149 150 const TYPING_BOTTOM_GAP: f32 = 8.;
150 151 pub const TYPING_TAG: &str = "shell/islands/main/typing";
151 152 const TYPING_DOT_SIZE: f32 = 5.;
@@ -4118,11 +4119,13 @@ impl Render for ConversationView {
4118 4119 view.update(cx, |this, cx| this.leave_detached(cx)).ok();
4119 4120 })
4120 4121 })
4121 .when(typing_line.is_some(), |scroller| {
4122 scroller.with_list_style(
4123 StyleRefinement::default().pb(px(TYPING_BUBBLE_HEIGHT + 2. * TYPING_BOTTOM_GAP)),
4124 )
4125 })
4122 .with_list_style(StyleRefinement::default().pb(px(if typing_line.is_some() {
4123 TYPING_BUBBLE_HEIGHT + 2. * TYPING_BOTTOM_GAP
4124 } else if in_feed {
4125 0.
4126 } else {
4127 COMPOSER_TOP_GAP
4128 })))
4126 4129 .with_top_inset(timeline_top_inset);
4127 4130
4128 4131 root = match self.current.as_ref().filter(|_| !drafting) {
@@ -4249,7 +4252,9 @@ impl Render for ConversationView {
4249 4252 None => column.child(runway(
4250 4253 v_flex()
4251 4254 .w_full()
4252 .children(self.render_proposal_card(cx))
4255 .children(self.render_proposal_card(cx).map(|card| {
4256 div().w_full().pb(px(COMPOSER_TOP_GAP)).child(card)
4257 }))
4253 4258 .child(self.composer.clone()),
4254 4259 comfy,
4255 4260 )),
@@ -146,6 +146,7 @@ const PROGRESS_BAR_WIDTH: f32 = 0.35;
146const TYPING_BUBBLE_HEIGHT: f32 = 28.;
146const TYPING_BUBBLE_HEIGHT: f32 = 28.;
147const TYPING_BUBBLE_PADDING: f32 = 12.;
147const TYPING_BUBBLE_PADDING: f32 = 12.;
148const TYPING_SIDE_INSET: f32 = 20.;
148const TYPING_SIDE_INSET: f32 = 20.;
149const COMPOSER_TOP_GAP: f32 = 8.;
149const TYPING_BOTTOM_GAP: f32 = 8.;
150const TYPING_BOTTOM_GAP: f32 = 8.;
150pub const TYPING_TAG: &str = "shell/islands/main/typing";
151pub const TYPING_TAG: &str = "shell/islands/main/typing";
151const TYPING_DOT_SIZE: f32 = 5.;
152const TYPING_DOT_SIZE: f32 = 5.;
@@ -4118,11 +4119,13 @@ impl Render for ConversationView {
4118 view.update(cx, |this, cx| this.leave_detached(cx)).ok();
4119 view.update(cx, |this, cx| this.leave_detached(cx)).ok();
4119 })
4120 })
4120 })
4121 })
4121 .when(typing_line.is_some(), |scroller| {
4122 .with_list_style(StyleRefinement::default().pb(px(if typing_line.is_some() {
4122 scroller.with_list_style(
4123 TYPING_BUBBLE_HEIGHT + 2. * TYPING_BOTTOM_GAP
4123 StyleRefinement::default().pb(px(TYPING_BUBBLE_HEIGHT + 2. * TYPING_BOTTOM_GAP)),
4124 } else if in_feed {
4124 )
4125 0.
4125 })
4126 } else {
4127 COMPOSER_TOP_GAP
4128 })))
4126 .with_top_inset(timeline_top_inset);
4129 .with_top_inset(timeline_top_inset);
4127
4130
4128 root = match self.current.as_ref().filter(|_| !drafting) {
4131 root = match self.current.as_ref().filter(|_| !drafting) {
@@ -4249,7 +4252,9 @@ impl Render for ConversationView {
4249 None => column.child(runway(
4252 None => column.child(runway(
4250 v_flex()
4253 v_flex()
4251 .w_full()
4254 .w_full()
4252 .children(self.render_proposal_card(cx))
4255 .children(self.render_proposal_card(cx).map(|card| {
4256 div().w_full().pb(px(COMPOSER_TOP_GAP)).child(card)
4257 }))
4253 .child(self.composer.clone()),
4258 .child(self.composer.clone()),
4254 comfy,
4259 comfy,
4255 )),
4260 )),