From 81567f83516bded4b40445fa225c5753f5916905 Mon Sep 17 00:00:00 2001 From: xiyidaiwa Date: Tue, 18 Aug 2026 00:15:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(display):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E8=AE=BE=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E4=BB=85=E4=BF=9D=E7=95=99=E7=95=8C=E9=9D=A2=E6=95=B4=E4=BD=93?= =?UTF-8?q?=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户实测发现仅调字体到特大/超大时主页面卡片布局遮挡,且字体大小 与界面缩放功能效果高度重叠。故采用方案1:删除字体大小入口,放大 统一由 Electron setZoomFactor 处理(整体等比缩放,不破坏布局)。 - displaySettings.ts:移除 FontSizeOption/FONT_SIZE_OPTIONS/applyFontSize/ setFontSize/initFontSize 等全部字体相关导出,仅保留界面缩放 - App.vue:移除 initFontSize 导入与调用 - SettingsModal.vue:删除「字体大小」卡片及所有相关逻辑,仅留「界面缩放」 - 还原 8 个组件中当初为字体联动改写的 rem 为原始 px(10/11/12/13/15px), 消除对 html font-size 的依赖,卡片布局不再因字号变化溢出 --- debian/changelog | 2 +- src/App.vue | 6 +- src/components/AccountQuickMenu.vue | 6 +- src/components/AppCard.vue | 10 +-- src/components/AppSidebar.vue | 6 +- src/components/CategoryBar.vue | 6 +- src/components/HomeView.vue | 8 +- src/components/InstalledAppsModal.vue | 22 ++--- src/components/RankingAppRow.vue | 6 +- src/components/SettingsModal.vue | 71 --------------- src/components/SourceLabel.vue | 2 +- src/components/WindowTitleBar.vue | 2 +- .../update-center/UpdateCenterItem.vue | 18 ++-- src/global/displaySettings.ts | 90 ++----------------- 14 files changed, 53 insertions(+), 202 deletions(-) diff --git a/debian/changelog b/debian/changelog index e9fb5d07..27ec7629 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -spark-store (5.3.0.6) UNRELEASED; urgency=medium +spark-store (5.3.0.7-test) UNRELEASED; urgency=medium * Initial release. diff --git a/src/App.vue b/src/App.vue index d3880c5f..d5bb3b55 100644 --- a/src/App.vue +++ b/src/App.vue @@ -344,7 +344,7 @@ import ReviewUserProfileModal from "./components/ReviewUserProfileModal.vue"; import WindowTitleBar from "./components/WindowTitleBar.vue"; import SubmitterWindow from "./components/SubmitterWindow.vue"; import { initTagPriorityStrategy } from "./global/tagPriority"; -import { initFontSize, initUiScale } from "./global/displaySettings"; +import { initUiScale } from "./global/displaySettings"; import { FLARUM_BASE_URL, FLARUM_REGISTER_URL, @@ -1053,9 +1053,7 @@ onMounted(async () => { // 应用启动即锁定标签优先显示策略的真实持久化值,避免依赖详情页挂载顺序 // 导致先读到内存默认值 "auto" 再懒加载的竞态窗口。 initTagPriorityStrategy(); - // 恢复并应用持久化的字体大小档位(仅字号),避免渲染瞬间默认字号闪烁。 - initFontSize(); - // 恢复并应用持久化的界面整体缩放(Electron setZoomFactor),与字号正交。 + // 恢复并应用持久化的界面整体缩放(Electron setZoomFactor)。 void initUiScale(); initTheme(); updateCenterStore.bind(); diff --git a/src/components/AccountQuickMenu.vue b/src/components/AccountQuickMenu.vue index d4437082..124018a2 100644 --- a/src/components/AccountQuickMenu.vue +++ b/src/components/AccountQuickMenu.vue @@ -52,10 +52,10 @@ const emit = defineEmits<{ display: flex; width: 100%; align-items: center; - gap: 0.75rem; + gap: 12px; min-width: 0; - border-radius: 0.75rem; - padding: 0.625rem 0.75rem; + border-radius: 12px; + padding: 10px 12px; text-align: left; font-size: 0.875rem; font-weight: 500; diff --git a/src/components/AppCard.vue b/src/components/AppCard.vue index f5fdb567..82d521f0 100644 --- a/src/components/AppCard.vue +++ b/src/components/AppCard.vue @@ -39,20 +39,20 @@
SPARK/APM