Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ public ObservableList<Label> getTags() {

FXUtils.setOverflowHidden(tagsBox);

lblTitle.setMinWidth(Label.USE_PREF_SIZE);
HBox.setHgrow(lblTitle, Priority.ALWAYS);
lblTitle.setMinWidth(0);
firstLine.getChildren().setAll(lblTitle, tagsBox);
Comment thread
ZZZank marked this conversation as resolved.
}
return tags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ final class ModInfoDialog extends JFXDialogLayout {
modInfo.loadIcon(imageContainer, null);

TwoLineListItem title = new TwoLineListItem();
title.getTitleLabel().setWrapText(true);
if (modInfo.getModTranslations() != null && I18n.isUseChinese())
title.setTitle(modInfo.getModTranslations().getDisplayName());
else
Expand Down Expand Up @@ -544,6 +545,7 @@ final class ModInfoListCell extends MDListCell<ModInfoObject> {
container.setAlignment(Pos.CENTER_LEFT);
HBox.setHgrow(content, Priority.ALWAYS);
content.setMouseTransparent(true);
content.getTitleLabel().setTextOverrun(OverrunStyle.ELLIPSIS);
setSelectable();

imageContainer.setImage(VersionIconType.COMMAND.getIcon());
Expand Down
Loading