Skip to content

fix(kimi-web): make ask-user question card scrollable on mobile#1388

Open
mikkelchokolate wants to merge 1 commit into
MoonshotAI:mainfrom
mikkelchokolate:fix/mobile-question-scroll
Open

fix(kimi-web): make ask-user question card scrollable on mobile#1388
mikkelchokolate wants to merge 1 commit into
MoonshotAI:mainfrom
mikkelchokolate:fix/mobile-question-scroll

Conversation

@mikkelchokolate

@mikkelchokolate mikkelchokolate commented Jul 5, 2026

Copy link
Copy Markdown

On mobile the app shell disables document scrolling, and the bottom dock (ChatDock) has no max-height or overflow. A question card with many/long options could grow past the viewport, making the Submit button unreachable.

This change constrains QuestionCard on narrow viewports (<=640px) to a flex column with a capped height, and makes .ui-card__body scrollable while the header/footer stay pinned.

Fixes #1400

@changeset-bot

changeset-bot Bot commented Jul 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5cb2506

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f98782b0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +635 to +638
.qbody {
min-height: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Constrain the Card body instead of .qbody

For long questions on mobile, this does not actually make the card body scroll because Card.vue wraps the default slot in .ui-card__body, which is the flex item under .qcard; .qbody itself has no constrained height, while the root card keeps overflow: hidden. The options can still expand past the max-height and leave the footer clipped/unreachable. Put the min-height: 0/overflow-y: auto behavior on the generated .ui-card__body (or otherwise make that wrapper the constrained flex child).

Useful? React with 👍 / 👎.

@mikkelchokolate mikkelchokolate force-pushed the fix/mobile-question-scroll branch from 1f98782 to fd932ee Compare July 5, 2026 04:43
@mikkelchokolate

Copy link
Copy Markdown
Author

@codex review

@mikkelchokolate

Copy link
Copy Markdown
Author

@chatgpt-codex-connector please re-review the latest commit.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd932eea05

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,108 @@
// @vitest-environment jsdom

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove the jsdom component test

The scoped apps/kimi-web/AGENTS.md says this package's test command is for “pure logic tests only; no jsdom / component tests.” This new test opts into jsdom and mounts an SFC with @vue/test-utils, so every pnpm --filter @moonshot-ai/kimi-web test run now includes the browser/component test path that the package rules explicitly exclude; move this coverage to an approved visual/browser path or a pure logic/style check instead.

Useful? React with 👍 / 👎.

@mikkelchokolate mikkelchokolate force-pushed the fix/mobile-question-scroll branch from fd932ee to 5cb2506 Compare July 5, 2026 04:59
@mikkelchokolate

Copy link
Copy Markdown
Author

@chatgpt-codex-connector rereview please. Removed the jsdom component test and reverted package.json/pnpm-lock changes per the package AGENTS.md. The PR now contains only the CSS fix in QuestionCard.vue.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 5cb25064f9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AskUserQuestion card is not scrollable on mobile, making Submit unreachable

1 participant