Skip to content

Commit 75ad8f5

Browse files
committed
Fix pending message extending on the right
1 parent 77a0b3f commit 75ad8f5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/ui_gpui/src/messages/activity_indicator.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub fn render_pending_message(
2222

2323
let pending_card = div()
2424
.w_full()
25-
.m_3()
2625
.bg(cx.theme().muted)
2726
.border_1()
2827
.border_color(cx.theme().warning)
@@ -61,7 +60,9 @@ pub fn render_pending_message(
6160
),
6261
);
6362

64-
pending_card.into_any_element()
63+
// Wrap the card in a padding container so its border + shadow sit inset
64+
// from the max-width boundary without overflowing via margin.
65+
div().w_full().p_3().child(pending_card).into_any_element()
6566
}
6667

6768
/// Render the inline activity indicator (braille spinner or rate-limit text).

0 commit comments

Comments
 (0)