Skip to content

优化 TwoLineListItem 中标签的展示方式#5465

Merged
Glavo merged 6 commits intoHMCL-dev:mainfrom
Glavo:tags-list
Feb 7, 2026
Merged

优化 TwoLineListItem 中标签的展示方式#5465
Glavo merged 6 commits intoHMCL-dev:mainfrom
Glavo:tags-list

Conversation

@Glavo
Copy link
Member

@Glavo Glavo commented Feb 6, 2026

No description provided.

@Glavo Glavo changed the title 使用 ListView 展示标签 优化 TwoLineListItem 中标签的展示方式 Feb 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 旨在优化 TwoLineListItem 第一行中标签(tags)的展示方式,避免标签内容对布局造成不良影响,并配套调整样式选择器以适配新的节点结构。

Changes:

  • TwoLineListItem 中用 ScrollPane 包裹标签容器,使标签区域具备可裁剪的视口能力
  • 调整 firstLine 的对齐方式为 CENTER_LEFT
  • 更新 root.css 中 tags 相关选择器,并新增针对滚动条显示/占位的样式规则

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
HMCL/src/main/resources/assets/css/root.css 更新 tags 选择器以适配新增的 ScrollPane 包裹层,并尝试隐藏滚动条占位
HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TwoLineListItem.java 为 tags 区域引入 ScrollPane 包裹并调整布局对齐

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Glavo Glavo merged commit d9b31ff into HMCL-dev:main Feb 7, 2026
2 checks passed
@Glavo Glavo deleted the tags-list branch February 7, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant