@@ -379,11 +379,14 @@ final class ModInfoDialog extends JFXDialogLayout {
379379 ModInfoDialog (ModInfoObject modInfo ) {
380380 HBox titleContainer = new HBox ();
381381 titleContainer .setSpacing (8 );
382+ titleContainer .setPadding (new Insets (0 , 0 , 12 , 0 ));
382383
383384 Stage stage = Controllers .getStage ();
385+ prefWidthProperty ().bind (stage .widthProperty ().multiply (0.7 ));
384386 maxWidthProperty ().bind (stage .widthProperty ().multiply (0.7 ));
385387
386388 var imageContainer = new ImageContainer (40 );
389+ titleContainer .setAlignment (Pos .CENTER_LEFT );
387390 modInfo .loadIcon (imageContainer , null );
388391
389392 TwoLineListItem title = new TwoLineListItem ();
@@ -392,13 +395,13 @@ final class ModInfoDialog extends JFXDialogLayout {
392395 else
393396 title .setTitle (modInfo .getModInfo ().getName ());
394397
395- StringJoiner subtitle = new StringJoiner (" | " );
396- subtitle .add (FileUtils .getName (modInfo .getModInfo ().getFile ()));
398+ StringJoiner subtitle = new StringJoiner ("\n " );
399+ subtitle .add (i18n ( "archive.file.name" ) + ": " + FileUtils .getName (modInfo .getModInfo ().getFile ()));
397400 if (StringUtils .isNotBlank (modInfo .getModInfo ().getGameVersion ())) {
398- subtitle .add (modInfo .getModInfo ().getGameVersion ());
401+ subtitle .add (i18n ( "mods.game.version" ) + ": " + modInfo .getModInfo ().getGameVersion ());
399402 }
400403 if (StringUtils .isNotBlank (modInfo .getModInfo ().getVersion ())) {
401- subtitle .add (modInfo .getModInfo ().getVersion ());
404+ subtitle .add (i18n ( "archive.version" ) + ": " + modInfo .getModInfo ().getVersion ());
402405 }
403406 if (StringUtils .isNotBlank (modInfo .getModInfo ().getAuthors ())) {
404407 subtitle .add (i18n ("archive.author" ) + ": " + modInfo .getModInfo ().getAuthors ());
0 commit comments