Repository navigation
classic 图标框占砖宽 60%(三档等比,普通+编辑模式) - #52
Merged
Merged
Conversation
图标盒 85/68/55(砖宽 141.5/113/92 的 60%);定高正方形放不下图标加两行文字(实测名称行被压到 8px),classic 砖改为同宽定高 w-[…] h-[…](185/144/119),宽、列数、居中、末行左对齐及 compact/wide 均不变。 Checkpoint: qeOymWsxilHMYa8Kj9Ry6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
object-contain等比完整显示。mx-auto+maxWidth居中、末行左对齐、拖拽/角标/编辑弹窗以及 compact / wide 的渲染全部未变。Changes
web/src/lib/grid-columns.tsCLASSIC_TILE_HEIGHTS(185 / 144 / 119):按「2×边框 + 上下内距 + 图标盒 + 2×gap + 两行名称 + 一行网址 + 2px 余量」逐档反推。CLASSIC_TILE_SIZE_CLASS(size-[…])拆为CLASSIC_TILE_WIDTH_CLASS(w-[…],仍与CLASSIC_TILE_SIZES同源)与CLASSIC_TILE_HEIGHT_CLASS(h-[…]),均为静态字面量类,不做动态拼接。web/src/components/link-grid.tsxCLASSIC_ICON_BOX:44 / 36 / 28 → 85 / 68 / 55;LINK_ICON_BOX.classic与其同源,避免两处漂移。linkTileClassName组合宽度类 + 高度类;砖内密度(字号、gap、内距)保持 nav 链接样式设置:新增 linkStyle 设置键(白名单 + DTO 带出 + 校验) #37 原值,名称仍可折两行。后台文案与注释(
settings-panels.tsx、types.ts、tile-size.ts、home-edit-board.tsx、worker/src/services/site-data.ts、docs/api-contract.md)tileSize语义(三档砖宽、全站统一、访客不可切)不变。测试(
grid-columns/link-grid/public-page/public-edit-mode/settings-panels)w-[…] h-[…]与新的图标值,新增砖高常量与静态类一一对应的断言;compact / wide 的既有断言(图标盒 20 / 36、排法)保持不变,作为不回退的护栏。Testing
pnpm lint:通过,33 条 warning(与 main 基线逐条一致,无新增,均在既有 shadcn UI 目录);pnpm format:check:通过。pnpm typecheck:通过(web + worker,0 错误);pnpm build:通过,产物 CSS 已包含w-[141.5px]/h-[185px]等字面量类。pnpm test:worker 221 passed / web 356 passed,0 失败。line-height完全相等,两行长标题实测 40 / 32 / 32px 且不溢出;编辑模式与普通模式同档尺寸完全一致,✕ 角标存在、点击弹出「编辑链接」弹窗正常;拖拽换位后 DOM 与落库顺序一致(不回弹)。