Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
potaotototo committed Oct 24, 2024
1 parent dda490a commit fbcbdd4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
9 changes: 3 additions & 6 deletions src/main/resources/view/DisplayCardPanel.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.VBox?>

<?import javafx.scene.layout.HBox?>
<HBox>
<VBox xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1">
<ListView fx:id="displayCardListView" />
</VBox>
</HBox>
<VBox xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" VBox.vgrow="ALWAYS">
<ListView fx:id="displayCardListView" VBox.vgrow="ALWAYS"/>
</VBox>
15 changes: 10 additions & 5 deletions src/main/resources/view/MainWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@
</MenuBar>

<!-- SplitPane to place person list and display card side by side -->
<SplitPane VBox.vgrow="ALWAYS" dividerPositions="0.3">
<SplitPane xmlns="http://javafx.com/javafx/17"
xmlns:fx="http://javafx.com/fxml/1"
VBox.vgrow="ALWAYS"
dividerPositions="0.3">
<!-- Left: Person List -->
<StackPane fx:id="personListPanelPlaceholder" minWidth="340" prefWidth="340" />

<!-- Right: DisplayCard -->
<StackPane fx:id="displayCardPanelPlaceholder" minWidth="800" prefWidth="800" styleClass="right-pane"/>
<StackPane fx:id="personListPanelPlaceholder"
minWidth="200"
maxWidth="200"/> <!-- Add maxWidth to fix the width -->
<!-- Right: Display Card -->
<StackPane fx:id="displayCardPanelPlaceholder"
minWidth="200"/>
</SplitPane>

<!-- Result Display -->
Expand Down

0 comments on commit fbcbdd4

Please sign in to comment.