From f1ecfc59cfd363b298cfbcd534c7dbe365436bec Mon Sep 17 00:00:00 2001 From: qer Date: Wed, 10 Jun 2026 03:38:19 +0800 Subject: [PATCH] fix(web): align session/workspace text via shared sidebar indent contract Workspace names, path lines and session titles each derived their left edge from unrelated magic numbers (terminal: session 5px left of the workspace name; modern: 1px right because the .se inset margin was not compensated; path line 2px off). Define one --sb-pad-x/--sb-gutter/ --sb-gap contract on .side and derive all three from it; drop the dead :root block in SessionRow's scoped style. Verified in-browser: all three text edges at x=34 in both themes. --- apps/kimi-web/src/components/SessionRow.vue | 18 ++++++------------ apps/kimi-web/src/components/Sidebar.vue | 15 +++++++++++---- apps/kimi-web/src/style.css | 3 +++ 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/apps/kimi-web/src/components/SessionRow.vue b/apps/kimi-web/src/components/SessionRow.vue index d2728ad3f..53bcfcbbf 100644 --- a/apps/kimi-web/src/components/SessionRow.vue +++ b/apps/kimi-web/src/components/SessionRow.vue @@ -172,16 +172,11 @@ defineExpose({ closeMenu, cancelDelete });