This commit is contained in:
yinsx
2026-01-29 11:39:46 +08:00
parent d025691180
commit 2bd53e3744
2 changed files with 9 additions and 3 deletions

View File

@ -32,7 +32,7 @@ export const layoutConfig = {
// 主内容区边界。
content: {
// 最大宽度(像素)。
maxWidth: 1400,
maxWidth: 1600,
// 内容区内边距(像素)。
padding: 40,
},

View File

@ -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,
};