Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix(web): prevent iOS Safari auto-zoom on input focus (#1652)

Marcus Grånäs9acf46a76d60
diff --git a/apps/web/src/components/ComposerPromptEditor.tsx b/apps/web/src/components/ComposerPromptEditor.tsx
index 811309963..f889b8f6e 100644
--- a/apps/web/src/components/ComposerPromptEditor.tsx
+++ b/apps/web/src/components/ComposerPromptEditor.tsx
@@ -152,10 +152,7 @@ function ComposerMentionDecorator(props: { path: string }) {
return (
<Tooltip>
<TooltipTrigger render={chip} />
- <TooltipPopup
- side="top"
- className="max-w-[30rem] whitespace-normal leading-tight wrap-anywhere"
- >
+ <TooltipPopup side="top" className="max-w-120 whitespace-normal leading-tight wrap-anywhere">
{props.path}
</TooltipPopup>
</Tooltip>
@@ -275,7 +272,7 @@ function ComposerSkillDecorator(props: { skillLabel: string; skillDescription: s
return (
<Tooltip>
<TooltipTrigger render={chip} />
- <TooltipPopup side="top" className="max-w-[30rem] whitespace-normal leading-tight">
+ <TooltipPopup side="top" className="max-w-120 whitespace-normal leading-tight">
{props.skillDescription}
</TooltipPopup>
</Tooltip>
@@ -1624,7 +1621,7 @@ function ComposerPromptEditorInner({
contentEditable={
<ContentEditable
className={cn(
- "block max-h-[200px] min-h-17.5 w-full overflow-y-auto whitespace-pre-wrap break-words bg-transparent text-[14px] leading-relaxed text-foreground focus:outline-none",
+ "block max-h-[200px] min-h-17.5 w-full overflow-y-auto whitespace-pre-wrap wrap-break-word bg-transparent text-base sm:text-[14px] leading-relaxed text-foreground focus:outline-none",
className,
)}
data-testid="composer-editor"
@@ -1635,7 +1632,7 @@ function ComposerPromptEditorInner({
}
placeholder={
terminalContexts.length > 0 ? null : (
- <div className="pointer-events-none absolute inset-0 text-[14px] leading-relaxed text-muted-foreground/35">
+ <div className="pointer-events-none absolute inset-0 text-base sm:text-[14px] leading-relaxed text-muted-foreground/35">
{placeholder}
</div>
)
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx
index e13f3bb0a..4db083dcc 100644
--- a/apps/web/src/components/Sidebar.tsx
+++ b/apps/web/src/components/Sidebar.tsx
@@ -568,7 +568,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
{renamingThreadKey === threadKey ? (
<input
ref={handleRenameInputRef}
- className="min-w-0 flex-1 truncate text-xs bg-transparent outline-none border border-ring rounded px-0.5"
+ className="min-w-0 flex-1 truncate text-base sm:text-xs bg-transparent outline-none border border-ring rounded px-0.5"
value={renamingTitle}
onChange={handleRenameInputChange}
onKeyDown={handleRenameInputKeyDown}