修复应用缩放有黑边区域

This commit is contained in:
2026-07-10 10:48:11 +08:00
parent e9843a5e00
commit 997cb7fdf1
6 changed files with 24 additions and 4 deletions

View File

@@ -10,5 +10,11 @@
"userTurns": 1,
"basisHash": "8f279ebcb96d036b",
"updatedAt": 1783352872251
},
"topic_20260708-095428_990617acd4168b40": {
"stage": 1,
"userTurns": 1,
"basisHash": "a29f890c9742dd7d",
"updatedAt": 1783651532738
}
}

View File

@@ -35,6 +35,8 @@
"topic_20260707-091519_dc062b2bfdf4249c": "auto",
"topic_20260707-092315_b8c3939bfc696802": "auto",
"topic_20260707-092711_af706c3fcc7e435e": "auto",
"topic_20260707-093602_5c75f77654cab0c3": "manual",
"topic_20260707-094645_05255aaa45d5f673": "manual",
"topic_20260707-095503_bf879b65e4666516": "auto",
"topic_20260708-020616_9ab54d98daf65053": "auto",
"topic_20260708-093419_71d1fea2e4b5a40f": "auto",

View File

@@ -35,8 +35,10 @@
"topic_20260707-091519_dc062b2bfdf4249c": "关于App.vue里的toolabr…",
"topic_20260707-092315_b8c3939bfc696802": "当我点击目录树切换显示文件的时候,右…",
"topic_20260707-092711_af706c3fcc7e435e": "帮我检查一下app.vue里的too…",
"topic_20260707-093602_5c75f77654cab0c3": "隐藏单栏和双栏的切换功能把mark…",
"topic_20260707-094645_05255aaa45d5f673": "帮我移除markdownEditor…",
"topic_20260707-095503_bf879b65e4666516": "帮我移除markdownEditor…",
"topic_20260708-020616_9ab54d98daf65053": "帮我分析一下现在的markdownE…",
"topic_20260708-093419_71d1fea2e4b5a40f": "src/components/Dir…",
"topic_20260708-095428_990617acd4168b40": "新的会话"
"topic_20260708-095428_990617acd4168b40": "帮我检查一下这个应用在进行放大缩小的…"
}

View File

@@ -17,7 +17,8 @@
"height": 600,
"minWidth": 900,
"minHeight": 600,
"decorations": false
"decorations": false,
"backgroundColor": "#faf9f6"
}
],
"security": {

View File

@@ -965,7 +965,7 @@ registerTauriListener("menu-event", (event) => {
/>
<!-- Right: Editor area -->
<main class="flex-1 flex flex-col overflow-hidden relative">
<main class="flex-1 flex flex-col overflow-hidden relative editor-area">
<!-- ════════════════ Custom title bar / toolbar ════════════════ -->
<div
class="editor-titlebar flex w-full items-center h-10 pl-3 pr-0 select-none shrink-0"
@@ -1239,6 +1239,10 @@ registerTauriListener("menu-event", (event) => {
border-bottom: 1px solid var(--app-border-strong);
}
.editor-area {
background: var(--app-bg);
}
.app-footer {
border-top: 1px solid var(--app-border);
background: color-mix(in srgb, var(--app-sidebar-bg) 72%, transparent);

View File

@@ -687,7 +687,7 @@ defineExpose({
<template>
<div
ref="scrollRef"
class="flex-1 w-full h-full overflow-auto"
class="flex-1 w-full h-full overflow-auto markdown-editor-scroll"
@wheel.passive
@keydown.capture="onRootKeydown"
>
@@ -783,6 +783,11 @@ defineExpose({
</template>
<style>
/* ── Scroll container ────────────────────────────────────────────── */
.markdown-editor-scroll {
background: var(--app-bg);
}
/* ── Markdown Preview Styles (warm palette) ─────────────────────── */
.markdown-preview {