From 5cb25064f951f70e940b93be99488d320d2996ca Mon Sep 17 00:00:00 2001 From: mikkelchokolate Date: Sun, 5 Jul 2026 04:35:54 +0000 Subject: [PATCH] fix(kimi-web): make ask-user question card scrollable on mobile --- apps/kimi-web/src/components/chat/QuestionCard.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/kimi-web/src/components/chat/QuestionCard.vue b/apps/kimi-web/src/components/chat/QuestionCard.vue index eff842d6e4..d3918db470 100644 --- a/apps/kimi-web/src/components/chat/QuestionCard.vue +++ b/apps/kimi-web/src/components/chat/QuestionCard.vue @@ -624,5 +624,19 @@ onUnmounted(() => document.removeEventListener('keydown', handleKeydown)); min-height: 46px; } .qfoot-main { order: -1; } + + /* Constrain the card height so long questions stay reachable on small screens. + The header and footer stay pinned; the scrollable area is Card.vue's body + wrapper, which is the flex child under .qcard. */ + .qcard { + display: flex; + flex-direction: column; + max-height: min(520px, 70vh); + } + .qcard :deep(.ui-card__body) { + min-height: 0; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + } }