Skip to content

禁止在 LogWindow 中显示横向滚动条#5935

Merged
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:log-window-scroll
Apr 10, 2026
Merged

禁止在 LogWindow 中显示横向滚动条#5935
Glavo merged 1 commit intoHMCL-dev:mainfrom
Glavo:log-window-scroll

Conversation

@Glavo
Copy link
Copy Markdown
Member

@Glavo Glavo commented Apr 10, 2026

No description provided.

@Glavo
Copy link
Copy Markdown
Member Author

Glavo commented Apr 10, 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 adds the 'no-horizontal-scrollbar' style class to the log window's list view. However, the feedback points out that the necessary CSS definition for this class is missing, making the change ineffective. Additionally, there is a concern that disabling horizontal scrolling may hinder the readability of long log strings that do not wrap automatically.

LogWindowImpl() {
getStyleClass().add("log-window");

listView.getStyleClass().add("no-horizontal-scrollbar");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

此更改仅添加了样式类 no-horizontal-scrollbar,但 PR 中未包含对应的 CSS 定义,导致该样式类无法生效。此外,禁用横向滚动条会导致无法自动换行的超长字符串(如 Base64 数据)无法完整显示,这可能影响日志的可读性。

@Glavo Glavo merged commit 101a9b5 into HMCL-dev:main Apr 10, 2026
2 checks passed
@Glavo Glavo deleted the log-window-scroll branch April 10, 2026 16:43
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