Skip to content

fix: 下载页面部分模组 subtitle 换行#5637

Open
CiiLu wants to merge 4 commits intoHMCL-dev:mainfrom
CiiLu:treactooa
Open

fix: 下载页面部分模组 subtitle 换行#5637
CiiLu wants to merge 4 commits intoHMCL-dev:mainfrom
CiiLu:treactooa

Conversation

@CiiLu
Copy link
Copy Markdown
Contributor

@CiiLu CiiLu commented Feb 24, 2026

image

// ListViewBehavior would consume ESC pressed event, preventing us from handling it, so we ignore it here
ignoreEvent(listView, KeyEvent.KEY_PRESSED, e -> e.getCode() == KeyCode.ESCAPE);

listView.setFixedCellSize(60);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

感觉设置一个硬编码的高度不是很合适,我担心会在一些字体设置下出问题。

@CiiLu CiiLu changed the title 固定模组下载列表项高度 fix: 下载页面部分模组 subtitle 换行 Apr 6, 2026
@Glavo
Copy link
Copy Markdown
Member

Glavo commented Apr 7, 2026

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the DownloadListPage to handle null descriptions and normalize line breaks by replacing newlines with spaces. The review feedback recommends using a regex to handle all line ending types (Unix and Windows) to avoid UI issues from leftover carriage returns.

…Page.java

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

2 participants