From f12c83cfb947eca8efad7ea8b60262a7e4b43d2f Mon Sep 17 00:00:00 2001 From: qer Date: Tue, 30 Jun 2026 23:28:34 +0800 Subject: [PATCH] fix(kimi-desktop): clear traffic lights and make the top draggable (#1237) - Increase the sidebar header's left padding (100px) on macOS so the floating traffic lights no longer overlap the Kimi Code brand. - Make the conversation header a window-drag region on macOS (interactive controls opt out with no-drag), so the whole top of the window can be dragged without adding a separate titlebar strip. --- apps/kimi-web/src/components/Sidebar.vue | 2 +- apps/kimi-web/src/components/chat/ChatHeader.vue | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/kimi-web/src/components/Sidebar.vue b/apps/kimi-web/src/components/Sidebar.vue index 25a6bdf78..4774312ab 100644 --- a/apps/kimi-web/src/components/Sidebar.vue +++ b/apps/kimi-web/src/components/Sidebar.vue @@ -682,7 +682,7 @@ function blinkOnce(): void { and turn the empty header area into the window-drag region; interactive controls opt out with no-drag. */ .side.macos-desktop .ch { - padding-left: 80px; + padding-left: 100px; -webkit-app-region: drag; } .side.macos-desktop .ch-logo, diff --git a/apps/kimi-web/src/components/chat/ChatHeader.vue b/apps/kimi-web/src/components/chat/ChatHeader.vue index 7e7d0b559..5d16982d6 100644 --- a/apps/kimi-web/src/components/chat/ChatHeader.vue +++ b/apps/kimi-web/src/components/chat/ChatHeader.vue @@ -6,6 +6,7 @@ import { computed, nextTick, onUnmounted, ref } from 'vue'; import { useI18n } from 'vue-i18n'; import { copyTextToClipboard } from '../../lib/clipboard'; +import { isMacosDesktop } from '../../lib/desktopFlag'; const { t } = useI18n(); @@ -202,7 +203,7 @@ function startArchive(): void {