feat(界面设计): 统一缩略图卡片四周视觉边距
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-31 19:26:02 +08:00
1 parent 8dd0457fd6
commit 3f58f639d1
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -3331,7 +3331,7 @@ button.outline-link:hover {
gap: 6px; gap: 6px;
width: 100%; width: 100%;
height: auto; height: auto;
padding: 8px; padding: 8px 8px 4px;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
text-align: left; text-align: left;
transition: border-color 0.16s ease, background-color 0.16s ease; transition: border-color 0.16s ease, background-color 0.16s ease;
@@ -3832,7 +3832,7 @@ button.outline-link:hover {
.thumb-grip { .thumb-grip {
position: absolute; position: absolute;
right: 8px; right: 8px;
bottom: 8px; bottom: 4px;
width: 24px; width: 24px;
height: 28px; height: 28px;
cursor: grab; cursor: grab;
+2 -2
View File
@@ -1079,13 +1079,13 @@ export function createPageView(context) {
if (context.state.pageLayout === 1) { if (context.state.pageLayout === 1) {
const size = pageView.pageViewSize(context.state.doc.pages[start]); const size = pageView.pageViewSize(context.state.doc.pages[start]);
const ratio = size.width > 0 && size.height > 0 ? size.height / size.width : 1 / 0.707; const ratio = size.width > 0 && size.height > 0 ? size.height / size.width : 1 / 0.707;
view.heights[start] = Math.max(1, width - 20) * ratio + 70; view.heights[start] = Math.max(1, width - 20) * ratio + 66;
offsets[start] = top; offsets[start] = top;
top += view.heights[start] + gap; top += view.heights[start] + gap;
continue; continue;
} }
const group = pageView.pageGroupSize(start), scale = Math.max(1, view.itemWidth - 20) / Math.max(...group.widths); const group = pageView.pageGroupSize(start), scale = Math.max(1, view.itemWidth - 20) / Math.max(...group.widths);
const height = group.height * scale + 70; const height = group.height * scale + 66;
for (let column = 0; column < 2; column++) { for (let column = 0; column < 2; column++) {
const index = start + column; const index = start + column;
if (index >= context.state.doc.pages.length) break; if (index >= context.state.doc.pages.length) break;