From 2bd53e3744b80af00001b56039d907dc370f7b57 Mon Sep 17 00:00:00 2001 From: yinsx Date: Thu, 29 Jan 2026 11:39:46 +0800 Subject: [PATCH] 1 --- app/src/config/layout.ts | 2 +- app/src/config/settingsPresets.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/config/layout.ts b/app/src/config/layout.ts index 566a208..1796b99 100644 --- a/app/src/config/layout.ts +++ b/app/src/config/layout.ts @@ -32,7 +32,7 @@ export const layoutConfig = { // 主内容区边界。 content: { // 最大宽度(像素)。 - maxWidth: 1400, + maxWidth: 1600, // 内容区内边距(像素)。 padding: 40, }, diff --git a/app/src/config/settingsPresets.ts b/app/src/config/settingsPresets.ts index 767016c..390f623 100644 --- a/app/src/config/settingsPresets.ts +++ b/app/src/config/settingsPresets.ts @@ -117,11 +117,17 @@ export const layoutDensityPresets: LayoutDensityPreset[] = [ cellSize: clamp(baseGrid.cellSize - 32, 64), gap: clamp(baseGrid.gap - 10, 4), }, + { + value: 5, + label: '极致紧凑', + cellSize: clamp(baseGrid.cellSize - 52, 52), + gap: clamp(baseGrid.gap - 14, 2), + }, ]; export const layoutDensityRange = { min: 1, - max: 4, + max: 5, step: 0.1, default: 2, }; @@ -152,7 +158,7 @@ export const getLayoutDensityPreset = (value?: number) => { export const iconDensityRange = { min: 0, max: 50, - step: 1, + step: 0.1, default: 25, };