mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #23904] Mobile: Suggested prompts render as single-character columns at ~375px viewport (ChatPlaceholder grid-cols-2 + px-8 padding) #90840
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jonalmar on GitHub (Apr 21, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23904
Bug Description
On iPhone-width viewports (~375px), the suggested prompts section below the composer renders each prompt as an extremely narrow column — only the first 1–2 characters of each prompt title are visible. The prompts are unreadable and unusable on mobile.
Repro
suggestion_promptsconfiguredSuggestedsection below the message composer — each prompt card shows only the first character of its titleSuspected Root Cause
File:
src/lib/components/chat/ChatPlaceholder.svelteLine ~37 (outer wrapper):
At 375px viewport:
px-8= 32px × 2 = 64px of padding → available width = 311pxLine ~101 (Suggestions call):
File:
src/lib/components/chat/Suggestions.svelteLine ~82 (list container):
className="grid grid-cols-2"is applied directly on the overflow container. At 311px available width,grid-cols-2creates two columns of ~155px each. Each prompt<button>haspx-3(24px total), leaving ~131px for text — which should be readable.However, there is an additional constraint: the grid container itself may not establish width correctly inside the flex-column layout on mobile, especially when:
divusesflex items-center gap-4(line ~72 in ChatPlaceholder)The symptom of only one character per column suggests the grid columns are collapsing to near-zero width rather than the expected ~155px, which can happen when
gridis applied to a container withoutmin-w-0inside a flex item.Likely Fix
In
ChatPlaceholder.svelte, the Suggestions wrapper<div class="w-full font-primary">should work, but the intermediate flex container (line ~72) may needmin-w-0orw-fullto prevent column collapse:Alternatively, the
px-8padding on mobile could be reduced (e.g.,px-4 sm:px-8) to give columns more breathing room.Note:
Placeholder.svelte(the new-chat landing page) does NOT passclassNametoSuggestions, so the grid is only applied viaChatPlaceholder.sveltewhen using workspace agents.Environment
ghcr.io/open-webui/open-webui:main(pulled ~2026-04-14)suggestion_prompts, PWA installed to home screenImpact
Any user who:
…will see the suggestions section as unreadable single-character fragments.
Files
src/lib/components/chat/ChatPlaceholder.svelte— passesclassName="grid grid-cols-2"and usespx-8on outer wrappersrc/lib/components/chat/Suggestions.svelte— appliesclassNamedirectly to thediv role="list"container (line ~82)