Repository navigation
编辑模式方块尺寸统一 + 长文本截断省略号 - #45
Merged
todosdev[bot] merged 2 commits intoNov 8, 2026
Merged
Conversation
- EditableTile 的按钮补 w-full/min-w-0,撑满网格格子(此前按内容收缩,宽窄不一且溢出) - LinkTileContent 新增 singleLine:编辑模式名称单行截断、名称与网址补 title 悬停看全称 - 空分类占位高度对齐三档砖的实测高度(130 / 36 / 62px)
…2-727d-a6e1-4f3c6d55dabd Conflicts: web/src/components/link-grid.tsx — LinkTileContent 同时接受本分支的 singleLine (编辑模式单行截断 + title)与 main 的 showUrl(普通模式「显示网址」开关): 两档的网址行由 showUrl 门控并保留 title,编辑模式不传 showUrl、恒显示网址。
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
title,悬停可见全称;普通模式的排布与提示行为不变。Changes
web/src/components/home-edit-board.tsxEditableTile的砖壳按钮补w-full min-w-0。根因:网格格子里<button>的宽度按内容收缩(实测 141.5px 格子里 81–301px 不等、还会溢出邻格),而普通模式用的是会自动撑满的<a>;补后与普通模式等宽。整块另补title。singleLine;拖拽预览沿用 dnd-kitDragOverlay(其包裹层本就按砖的实测矩形定尺寸),预览内容同样走singleLine,拖动时与原地砖等大。PLACEHOLDER_CLASS三档高度对齐实测砖高 130 / 36 / 62px(原 132 / 44 / 60),并把尺寸口径写进文件头注释。web/src/components/link-grid.tsxLinkTileContent新增可选singleLine:经典档名称由line-clamp-2改为truncate,开启时名称行与网址行补title;不传该开关时行为与改动前完全一致。main的「显示网址」开关(showUrl)合并:网址行仍由showUrl门控,门控内的网址行同时带编辑模式的title;编辑模式不传showUrl(恒显示,便于核对地址)。role="button"的<div>已与实现不符)。Testing
portainer.internal.ex…),title为全称;截图经 macOS Vision OCR 确认省略号真实渲染showUrl组合:关闭时普通模式经典档砖高 126(无网址行),编辑模式仍 130 且显示网址titlemain后重跑):pnpm lint(退出码 0,警告均为既有 ui 组件)、format:check、typecheck(web + worker)、build(web + worker)、test(worker 214 条 + web 318 条全部通过)