fix(kimi-web): shrink collapsed thinking block on mobile (#1461)

This commit is contained in:
qer 2026-07-07 14:04:00 +08:00 committed by GitHub
parent 8d58d6ad4c
commit 9b18dc46cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<HTMLElement | null>(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) */