Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions crates/ui/src/transcript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8977,16 +8977,19 @@ fn fork_marker(source_title: SharedString, theme: &Theme) -> AnyElement {
)
.child(rule()),
)
// Centered by flex, not `text_center()`: gpui registers a text line's
// layer at the line origin with the text's own width, so glyphs shifted
// by alignment paint outside it and can draw over popovers above them.
.child(
div()
.w_full()
.min_w_0()
.truncate()
.text_center()
.text_size(crate::typography::ui_rems(13.0))
.font_weight(gpui::FontWeight::MEDIUM)
.text_color(theme.text_muted)
.child(source_title),
div().w_full().min_w_0().flex().justify_center().child(
div()
.min_w_0()
.truncate()
.text_size(crate::typography::ui_rems(13.0))
.font_weight(gpui::FontWeight::MEDIUM)
.text_color(theme.text_muted)
.child(source_title),
),
)
.into_any_element()
}
Expand Down
Loading