Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/LogWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ private final class LogWindowImpl extends Control {
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 数据)无法完整显示,这可能影响日志的可读性。

listView.getProperties().put("no-smooth-scrolling", true);
listView.setItems(FXCollections.observableList(new CircularArrayList<>(logs.size())));

Expand Down