对齐启动面板底部组件

This commit is contained in:
郝某人BH 2025-09-03 22:24:13 +08:00
parent b727b6783c
commit 74ed377464
2 changed files with 9 additions and 2 deletions

View File

@ -80,7 +80,7 @@ public class TaskExecutorDialogPane extends BorderPane {
{
lblProgress = new Label("0.0 B/s"); // Prevent sudden changes in layout
bottom.setLeft(lblProgress);
BorderPane.setMargin(lblProgress, new Insets(4, 0, 0, 20));
BorderPane.setMargin(lblProgress, new Insets(0, 0, 4, 14));
lblBottomTip = new Label(getRandomTip());
lblBottomTip.setStyle("-fx-text-fill: rgba(100, 100, 100, 0.9)");

View File

@ -67,7 +67,14 @@ public final class RandomTip {
lineLength += charLength;
}
return formattedTip.toString();
String result = formattedTip.toString();
// it's just a single line
if (!result.contains("\n")) {
result += "\n\t";
}
return result.toString();
}
private static final class FakeRandomIndex {