Repository navigation
wide 卡片收宽封顶 380px + 图标放大 56px + 网址行受「显示网址」开关控制 - #53
Merged
Merged
Conversation
Checkpoint: aXEp-AOfGpTtf6cJ87AIZ
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
lg:grid-cols-3),改为repeat(auto-fill, minmax(min(300px, 100%), 380px))+justify-content: center:卡宽封顶 300–380px、大屏一行多张、整行居中,窄屏自然折行,单张卡不再被拉成整行宽。py-3+ 1px 边框 = 82px),不写min-height。settings.showUrl(缺省开):关闭后整行不渲染、不占位。Changes
web/src/components/link-grid.tsxLINK_GRID_CLASS.wide换成 auto-fill 轨道模板 +justify-center;LINK_ICON_BOX.wide由 36 改为 56;同步更新排布说明注释。min(300px, 100%)而非字面300px:320px 视口的内容区只有 288px,字面写法会横向溢出 12px;min()让轨道随容器收缩,其余宽度下等同于minmax(300px, 380px)。web/src/components/home-edit-board.tsx:编辑模式 wide 档「+」占位砖min-h-[62px]→min-h-[82px],与放大后的真卡同高(classic / compact 占位砖不动)。web/test/link-grid.test.tsx、web/test/public-page.test.tsx:wide 断言更新为新的列模板与 56px 图标,并新增「网址开关关闭后卡片内文字行由 2 行变 1 行」的结构断言,锁住「不占位」而非仅隐藏。Testing
pnpm lint、pnpm format:check、pnpm typecheck、pnpm build、pnpm test全绿(worker 221 + web 356 例);classic / compact 的既有断言一行未改仍通过。仓库 CI(workflow_dispatch)run 42499079623 在交付提交cc3655b上全绿。