From 53f6be608673ff4d6ce1c96bca2044295a185bc5 Mon Sep 17 00:00:00 2001 From: TassioSales Date: Mon, 16 Nov 2026 15:34:23 -0300 Subject: [PATCH 1/2] fix(desktop): prevent text overflow in export options and statistics (#4274) --- apps/desktop-gpui/locales/en.toml | 2 +- apps/desktop-gpui/src/editor_export.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/desktop-gpui/locales/en.toml b/apps/desktop-gpui/locales/en.toml index 3bb3586fdc4..60a96946a13 100644 --- a/apps/desktop-gpui/locales/en.toml +++ b/apps/desktop-gpui/locales/en.toml @@ -2418,7 +2418,7 @@ sign_in = "Sign in to share" [editor.export.destination] clipboard = { text = "Clipboard", context = "Export destination." } file = { text = "File", context = "Export destination." } -link = { text = "Shareable Link", context = "Export destination." } +link = { text = "Link", context = "Export destination." } [editor.export.done] copy_link = "Copy link" diff --git a/apps/desktop-gpui/src/editor_export.rs b/apps/desktop-gpui/src/editor_export.rs index 47fed09cae0..83ea52834b9 100644 --- a/apps/desktop-gpui/src/editor_export.rs +++ b/apps/desktop-gpui/src/editor_export.rs @@ -1662,7 +1662,7 @@ impl EditorWindow { div().flex().flex_row().justify_center().child( div() .h(px(STATS_HEIGHT)) - .min_w(px(520.)) + .min_w(px(540.)) .flex() .flex_row() .rounded(px(10.)) @@ -2436,6 +2436,8 @@ impl EditorWindow { ) .child( div() + .flex_1() + .min_w_0() .text_size(px(11.5)) .line_height(px(15.)) .text_color(Hsla::from(editor.text_2)) @@ -3025,7 +3027,7 @@ fn export_stat( .min_w_0() .flex_col() .justify_center() - .px(px(16.)) + .px(px(12.)) .gap(px(1.)) .when(divided, |this| { this.border_l_1().border_color(Hsla::from(editor.line)) @@ -3044,6 +3046,7 @@ fn export_stat( .font_weight(FontWeight::MEDIUM) .text_color(Hsla::from(editor.text_1)) .whitespace_nowrap() + .truncate() .child(value) .into_any_element(), None => div() From 00010f594c393a83154334d5573728fed2366a70 Mon Sep 17 00:00:00 2001 From: TassioSales Date: Mon, 16 Nov 2026 19:17:13 -0300 Subject: [PATCH 2/2] test(i18n): preserve Shareable Link translation literal for surface tests --- apps/desktop-gpui/locales/en.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop-gpui/locales/en.toml b/apps/desktop-gpui/locales/en.toml index 60a96946a13..3bb3586fdc4 100644 --- a/apps/desktop-gpui/locales/en.toml +++ b/apps/desktop-gpui/locales/en.toml @@ -2418,7 +2418,7 @@ sign_in = "Sign in to share" [editor.export.destination] clipboard = { text = "Clipboard", context = "Export destination." } file = { text = "File", context = "Export destination." } -link = { text = "Link", context = "Export destination." } +link = { text = "Shareable Link", context = "Export destination." } [editor.export.done] copy_link = "Copy link"