From db4a9a6fbd1b93d815b1d13d5d9d896507555e20 Mon Sep 17 00:00:00 2001 From: Luke-Bilhorn Date: Fri, 5 Jun 2026 10:17:48 -0500 Subject: [PATCH] Fix MainMenu publish card and language overflow on narrow sidebars (#1028) - Publish card now uses Tailwind v4 container queries: stacks vertically (icon+text on top, button centered below) when the card is under 280px, switches to the original horizontal layout above. Prevents the Publish button from covering the wrapped title and avoids forcing the card wider than its column. - Source/Target language cells get min-w-0 and break-words so long names like "BiblicalHebrewAramaicGreek..." wrap instead of overflowing. --- .../codex-webviews/src/MainMenu/index.tsx | 36 ++++++++++--------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/webviews/codex-webviews/src/MainMenu/index.tsx b/webviews/codex-webviews/src/MainMenu/index.tsx index d26580def..ebee5ae3a 100644 --- a/webviews/codex-webviews/src/MainMenu/index.tsx +++ b/webviews/codex-webviews/src/MainMenu/index.tsx @@ -699,7 +699,7 @@ function MainMenu() { {/* Languages row */}
handleProjectAction( "changeSourceLanguage", @@ -711,14 +711,14 @@ function MainMenu() {
Source
-
+
{getLanguageDisplay( projectState.projectOverview.sourceLanguage )}
handleProjectAction( "changeTargetLanguage", @@ -847,21 +847,23 @@ function MainMenu() { {/* Publish Card - only show if project doesn't have remote */} {!projectState.repoHasRemote && ( - + -
-
- -
-
-
- Publish to Cloud +
+
+
+
-
- Enable syncing and collaboration +
+
+ Publish to Cloud +
+
+ Enable syncing and collaboration +