From 99c051a8742dc932459ca868e5d245a635f57dbd Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Tue, 7 Jul 2026 22:08:20 +0800 Subject: [PATCH] =?UTF-8?q?del:=20MJPEG=20/HTTTP=20=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=88=A0=E9=99=A4=E7=BD=91=E9=A1=B5=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=BB=9F=E8=AE=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ActionBar.vue | 12 ++++++++++-- web/src/components/StatsSheet.vue | 32 +++++++++++-------------------- web/src/i18n/en-US.ts | 3 --- web/src/i18n/zh-CN.ts | 3 --- web/src/views/ConsoleView.vue | 19 ++++++++++++++---- 5 files changed, 36 insertions(+), 33 deletions(-) diff --git a/web/src/components/ActionBar.vue b/web/src/components/ActionBar.vue index 68b83a76..1e0e82a1 100644 --- a/web/src/components/ActionBar.vue +++ b/web/src/components/ActionBar.vue @@ -66,6 +66,7 @@ const props = defineProps<{ showTerminal?: boolean showComputerUse?: boolean }>() +const showStats = computed(() => (props.videoMode ?? 'mjpeg') !== 'mjpeg') const emit = defineEmits<{ (e: 'toggleFullscreen'): void @@ -196,6 +197,7 @@ const RIGHT_FIXED_PX = 120 const collapsibleItems = computed(() => { const items = ITEM_SPECS.slice(3).filter(item => { if (item.id === 'msd' && !showMsd.value) return false + if (item.id === 'stats' && !showStats.value) return false if (item.id === 'terminal' && props.showTerminal === false) return false return true }) @@ -244,6 +246,12 @@ const isVisible = (id: CollapsibleItem) => visibleSet.value.has(id) const hasOverflow = computed(() => { return collapsibleItems.value.some(i => !visibleSet.value.has(i.id)) }) +const hasLeftOverflow = computed(() => { + return collapsibleItems.value.some(i => i.side === 'left' && !visibleSet.value.has(i.id)) +}) +const hasRightOverflow = computed(() => { + return collapsibleItems.value.some(i => i.side === 'right' && !visibleSet.value.has(i.id)) +})