diff --git a/src/main/java/top/r3944realms/docchecktoolrefactored/ui/SceneManager.java b/src/main/java/top/r3944realms/docchecktoolrefactored/ui/SceneManager.java index 1d0a141..8c43890 100644 --- a/src/main/java/top/r3944realms/docchecktoolrefactored/ui/SceneManager.java +++ b/src/main/java/top/r3944realms/docchecktoolrefactored/ui/SceneManager.java @@ -53,7 +53,7 @@ public class SceneManager { * Switch main view. */ public static void switchMainView() { - SceneManager.loadView("/fxml/main-view.fxml", "淮阴区数字化档案检查验收系统 - 主界面", 1000, 1000); + SceneManager.loadView("/fxml/main-view.fxml", "淮阴区数字化档案检查验收系统 - 主界面", 1200, 900); } /** diff --git a/src/main/resources/css/custom-tab.css b/src/main/resources/css/custom-tab.css index f5cafa7..7c6cee3 100644 --- a/src/main/resources/css/custom-tab.css +++ b/src/main/resources/css/custom-tab.css @@ -47,7 +47,7 @@ -fx-font-size: 16px; -fx-alignment: CENTER; -fx-padding: 0 10 0 10; - -fx-max-width: 180px; + -fx-max-width: 100px; -fx-translate-x: 6px; -fx-text-overrun: ellipsis; } @@ -67,9 +67,17 @@ } /* Tab重叠调整 */ +/* 文字少的标签页样式 */ .tab-pane > .tab-header-area > .headers-region > .tab { -fx-background-insets: 0 -15 0 0; - -fx-min-width: 200px; + -fx-min-width: 80px; + -fx-pref-width: 180px; + -fx-max-height: 300px; +} + +/* 文字多的标签页样式 */ +.tab-pane > .tab-header-area > .headers-region > .tab.long-text-tab { + -fx-background-insets: 0 -15 0 0; -fx-pref-width: 300px; -fx-max-height: 300px; } diff --git a/src/main/resources/fxml/module/step-1-pane.fxml b/src/main/resources/fxml/module/step-1-pane.fxml index 87bec2b..db27a7e 100644 --- a/src/main/resources/fxml/module/step-1-pane.fxml +++ b/src/main/resources/fxml/module/step-1-pane.fxml @@ -19,10 +19,10 @@ - - - - + + + + - - - - - - - - - + + + + + + + + + diff --git a/src/main/resources/fxml/module/step-7-pane.fxml b/src/main/resources/fxml/module/step-7-pane.fxml index 9f6c80c..31d8b5e 100644 --- a/src/main/resources/fxml/module/step-7-pane.fxml +++ b/src/main/resources/fxml/module/step-7-pane.fxml @@ -18,10 +18,10 @@ - - - - + + + + @@ -125,7 +125,7 @@ -