diff --git a/webui/src/App.tsx b/webui/src/App.tsx index fa297681..722a6e55 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -69,6 +69,7 @@ const COMPLETED_RUNS_STORAGE_KEY = "nanobot-webui.sidebar.completed-runs.v1"; const RESTART_STARTED_KEY = "nanobot-webui.restartStartedAt"; const SIDEBAR_WIDTH = 272; const SIDEBAR_RAIL_WIDTH = 56; +const MOBILE_SIDEBAR_WIDTH = `min(${SIDEBAR_WIDTH}px, calc(100vw - 0.75rem))`; const TOKEN_REFRESH_MARGIN_MS = 30_000; const TOKEN_REFRESH_MIN_DELAY_MS = 5_000; type ShellView = "chat" | "settings" | "apps" | "skills"; @@ -1498,7 +1499,7 @@ function Shell({ showCloseButton={false} aria-describedby={undefined} className="p-0 lg:hidden" - style={{ width: SIDEBAR_WIDTH, maxWidth: SIDEBAR_WIDTH }} + style={{ width: MOBILE_SIDEBAR_WIDTH, maxWidth: MOBILE_SIDEBAR_WIDTH }} > {t("sidebar.navigation")} {restartToast} diff --git a/webui/src/components/DeleteConfirm.tsx b/webui/src/components/DeleteConfirm.tsx index fc73edd9..d0a5ff77 100644 --- a/webui/src/components/DeleteConfirm.tsx +++ b/webui/src/components/DeleteConfirm.tsx @@ -80,7 +80,7 @@ export function DeleteConfirm({ ) : null} - +
@@ -1652,7 +1652,7 @@ function SettingsSidebar({ return (
) : null}
- {children ?
{children}
: null} + {children ?
{children}
: null} ); } @@ -5572,7 +5572,7 @@ function ReadOnlyRow({ }) { return ( - + {value} @@ -6018,7 +6018,7 @@ function NumberInput({ const parsed = Number(event.target.value); if (Number.isFinite(parsed)) onChange(parsed); }} - className="h-8 w-24 rounded-full text-[13px]" + className="h-8 w-24 max-w-full rounded-full text-[13px]" /> {suffix ? {suffix} : null} diff --git a/webui/src/components/settings/TokenUsageHeatmap.tsx b/webui/src/components/settings/TokenUsageHeatmap.tsx index 3e5939e1..09139c91 100644 --- a/webui/src/components/settings/TokenUsageHeatmap.tsx +++ b/webui/src/components/settings/TokenUsageHeatmap.tsx @@ -177,7 +177,7 @@ export function TokenUsageHeatmap({ return (
-
+
{tx("settings.usage.shortTitle", "Token Usage")} @@ -195,7 +195,7 @@ export function TokenUsageHeatmap({ ))}
@@ -224,7 +224,7 @@ export function TokenUsageHeatmap({ diff --git a/webui/src/components/thread/ThreadComposer.tsx b/webui/src/components/thread/ThreadComposer.tsx index 1ac6e398..fdf66345 100644 --- a/webui/src/components/thread/ThreadComposer.tsx +++ b/webui/src/components/thread/ThreadComposer.tsx @@ -1544,10 +1544,10 @@ export function ThreadComposer({ "w-full resize-none bg-transparent", isHero ? cn( - "min-h-[78px] px-5 text-[15px] leading-6", + "min-h-[78px] px-4 text-[15px] leading-6 sm:px-5", relaxedHeroInput ? "pb-2 pt-[27px]" : "pb-1.5 pt-4", ) - : "min-h-[50px] px-4 pb-1.5 pt-3 text-[13.5px] leading-5", + : "min-h-[50px] px-3.5 pb-1.5 pt-3 text-[13.5px] leading-5 sm:px-4", ); return ( @@ -1699,11 +1699,13 @@ export function ThreadComposer({ ) : null}
-
+
) : null}
-
+
{modelLabel && !voiceRecorder.isRecording ? ( - + {displayName} @@ -2396,7 +2401,7 @@ function SlashCommandPalette({ > - + {title} @@ -2404,7 +2409,7 @@ function SlashCommandPalette({ {command.detail || description} - + {command.badge || command.recent ? ( {command.badge ?? t("thread.composer.slash.badges.recent")} @@ -2486,7 +2491,7 @@ function AttachmentChip({ ) : null}
- + {image.file.name} diff --git a/webui/src/components/thread/ThreadShell.tsx b/webui/src/components/thread/ThreadShell.tsx index 113f660a..f9ca7be8 100644 --- a/webui/src/components/thread/ThreadShell.tsx +++ b/webui/src/components/thread/ThreadShell.tsx @@ -725,7 +725,7 @@ export function ThreadShell({
) : (
-

+

{t(heroGreetingKey)}

diff --git a/webui/src/components/thread/ThreadViewport.tsx b/webui/src/components/thread/ThreadViewport.tsx index 55df4ecb..e779e1bc 100644 --- a/webui/src/components/thread/ThreadViewport.tsx +++ b/webui/src/components/thread/ThreadViewport.tsx @@ -335,7 +335,7 @@ export const ThreadViewport = forwardRef {hasMessages ? (
-
+
-
+
{composer}
) : ( -
-
-
-
+
+
+
+
{emptyState}
{composer}
diff --git a/webui/src/components/thread/WorkspaceControls.tsx b/webui/src/components/thread/WorkspaceControls.tsx index 8c80ac24..7fef4755 100644 --- a/webui/src/components/thread/WorkspaceControls.tsx +++ b/webui/src/components/thread/WorkspaceControls.tsx @@ -106,7 +106,7 @@ export function WorkspaceProjectPicker({ if (nativeProjectPicker) { return ( -
+
{pathError || error ? ( - + {pathError ?? error} ) : null} @@ -133,7 +133,7 @@ export function WorkspaceProjectPicker({ } return ( -
+