Skip to content

ui: Fix markdown tables and lists being cut off on phones - #30687

Merged
ggerganov merged 3 commits into
masterfrom
allozaur/fix/ui-mobile-table-overflow
Oct 19, 2026
Merged

ggerganov merged 3 commits into
masterfrom
allozaur/fix/ui-mobile-table-overflow

Conversation

@allozaur

Copy link
Copy Markdown
Contributor

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES, llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)

The phone rule made the table wrapper full-bleed with -1rem margins, so the
first and the last column sat under the screen edge. Keep the wrapper inside the
chat column and cap it at its width, so a wide table scrolls in place instead.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)
Adds a story with an answer that is mostly a table, so the table layout can be
checked at a phone width.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)
1.5rem put the marker too close to the item text.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)
@allozaur allozaur changed the title ui: Fix markdown tables being cut off on phones ui: Fix markdown tables and lists being cut off on phones Oct 16, 2026
@allozaur
allozaur marked this pull request as ready for review October 16, 2026 18:28
@allozaur
allozaur requested a review from a team as a code owner October 16, 2026 18:28
Copilot AI balanced review requested due to automatic review settings October 16, 2026 18:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

No blocking issues were identified, but mobile clipping and horizontal scrolling still need browser validation.

0 open findings

What changed in this PR

Improves markdown table and list layout on phones in the chat UI.

Changes:

  • Increases list indentation.
  • Constrains table wrappers and removes negative mobile margins.
  • Adds a table-heavy chat story with long-cell fixtures.
File Description
tools/​ui/​tests/​stories/​fixtures/​mobile-tables.ts Adds table layout fixtures.
tools/​ui/​tests/​stories/​ChatMessage.stories.svelte Adds an assistant table story.
tools/​ui/​src/​lib/​components/​app/​content/​MarkdownContent/​markdown-content.css Adjusts list indentation and mobile table sizing and margins.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@allozaur allozaur added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Oct 16, 2026
@ggerganov
ggerganov merged commit 2b57148 into master Oct 19, 2026
8 checks passed
@ggerganov
ggerganov deleted the allozaur/fix/ui-mobile-table-overflow branch October 19, 2026 06:28
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 24, 2026
…0687)

* ui : keep markdown tables inside the chat column on phones

The phone rule made the table wrapper full-bleed with -1rem margins, so the
first and the last column sat under the screen edge. Keep the wrapper inside the
chat column and cap it at its width, so a wide table scrolls in place instead.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)

* test : show a table-only model answer in the chat message story

Adds a story with an answer that is mostly a table, so the table layout can be
checked at a phone width.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)

* ui : indent markdown lists by 2rem

1.5rem put the marker too close to the item text.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)
auRose94 pushed a commit to auRose94/llama.cpp that referenced this pull request Oct 28, 2026
…0687)

* ui : keep markdown tables inside the chat column on phones

The phone rule made the table wrapper full-bleed with -1rem margins, so the
first and the last column sat under the screen edge. Keep the wrapper inside the
chat column and cap it at its width, so a wide table scrolls in place instead.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)

* test : show a table-only model answer in the chat message story

Adds a story with an answer that is mostly a table, so the table layout can be
checked at a phone width.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)

* ui : indent markdown lists by 2rem

1.5rem put the marker too close to the item text.

Assisted-by: llama-ui (ggml-org/Qwen3.8-Flash-Next:IQ4_NL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. server/ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants