From fe70cc3daf4d7ed75f7802a8f284ef802058f4e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=9E=E5=BA=90?= <109708109+CiiLu@users.noreply.github.com> Date: Sun, 12 Apr 2026 21:40:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=A1=E7=BB=84=E5=90=8D=E5=AD=97?= =?UTF-8?q?=E8=BF=87=E9=95=BF=E5=AF=BC=E8=87=B4=E4=B8=8B=E8=BD=BD=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B8=83=E5=B1=80=E5=BC=82=E5=B8=B8=20(#5943)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jackhuang/hmcl/ui/construct/TwoLineListItem.java | 5 +++++ .../java/org/jackhuang/hmcl/ui/versions/DownloadPage.java | 1 + 2 files changed, 6 insertions(+) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TwoLineListItem.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TwoLineListItem.java index 35f99b9ac0..621a2c548d 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TwoLineListItem.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/TwoLineListItem.java @@ -147,6 +147,10 @@ public class TwoLineListItem extends VBox { subtitleProperty().set(subtitle); } + public HBox getFirstLine() { + return firstLine; + } + public Label getTitleLabel() { return lblTitle; } @@ -168,6 +172,7 @@ public class TwoLineListItem extends VBox { Bindings.bindContent(tagsBox.getChildren(), tags); var scrollPane = new ScrollPane(tagsBox); + scrollPane.setMinSize(0, 0); HBox.setHgrow(scrollPane, Priority.ALWAYS); lblTitle.setMinWidth(Label.USE_PREF_SIZE); scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER); diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java index c42c0b3cb7..681d766c2c 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java @@ -227,6 +227,7 @@ public class DownloadPage extends Control implements DecoratorPage { getSkinnable().addon.getCategories().stream() .map(category -> getSkinnable().page.getLocalizedCategory(category)) .forEach(content::addTag); + content.getFirstLine().setMinWidth(0); descriptionPane.getChildren().add(content); if (getSkinnable().mod != null) {