From 9b18dc46cff1685446e0b1434893d3fa95d58b96 Mon Sep 17 00:00:00 2001 From: qer Date: Tue, 7 Jul 2026 14:04:00 +0800 Subject: [PATCH] fix(kimi-web): shrink collapsed thinking block on mobile (#1461) --- apps/kimi-web/src/components/chat/ThinkingBlock.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/kimi-web/src/components/chat/ThinkingBlock.vue b/apps/kimi-web/src/components/chat/ThinkingBlock.vue index 41200a217..64156d7cf 100644 --- a/apps/kimi-web/src/components/chat/ThinkingBlock.vue +++ b/apps/kimi-web/src/components/chat/ThinkingBlock.vue @@ -35,7 +35,7 @@ const isFoldable = computed(() => props.foldable && paragraphs.value.length > 1) const open = computed(() => props.streaming || !isFoldable.value); /** Last non-empty paragraph, shown as the collapsed teaser. */ -const teaser = computed(() => paragraphs.value.pop() ?? ''); +const teaser = computed(() => paragraphs.value.at(-1) ?? ''); const bodyEl = ref(null); @@ -99,7 +99,13 @@ watch( } .tc-anim, .prev-anim { + /* min-height: 0 is required for the 0fr/1fr grid collapse to actually shrink + below the tracks' content. Without it, an inner scroll container (`.tc`, + overflow-y: auto) contributes its content as the automatic minimum, so the + row keeps its streaming height and never collapses to the short teaser — + most visible on iOS Safari. */ overflow: hidden; + min-height: 0; } /* Hover hints clickability (opens the full text in the side panel) */