Skip to content

Commit

Permalink
Fix issue with not displaying of long names, address, description and…
Browse files Browse the repository at this point in the history
… task tags
  • Loading branch information
nobodyishappy committed Apr 8, 2024
1 parent d129239 commit 63caa99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/view/DarkTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,5 +355,7 @@
-fx-border-radius: 2;
-fx-background-radius: 2;
-fx-font-size: 11;
-fx-wrap-text: true;
-fx-max-width: 300;
}

6 changes: 3 additions & 3 deletions src/main/resources/view/PersonListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
<Region fx:constant="USE_PREF_SIZE" />
</minWidth>
</Label>
<Label fx:id="name" text="\$first" styleClass="cell_big_label" />
<Label fx:id="name" text="\$first" styleClass="cell_big_label" wrapText="true"/>
</HBox>
<FlowPane fx:id="tasks" />
<FlowPane fx:id="tasks"/>
<Label fx:id="phone" styleClass="cell_small_label" text="\$phone" />
<Label fx:id="address" styleClass="cell_small_label" text="\$address" />
<Label fx:id="address" styleClass="cell_small_label" text="\$address" wrapText="true"/>
<Label fx:id="email" styleClass="cell_small_label" text="\$email" />
</VBox>
</GridPane>
Expand Down
12 changes: 4 additions & 8 deletions src/main/resources/view/TaskListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
</padding>
<GridPane>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="65.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
Expand All @@ -35,11 +35,7 @@
<Region fx:constant="USE_PREF_SIZE" />
</minWidth>
</Label>
<Label fx:id="name" styleClass="cell_big_label" text="\$name">
<minWidth>
<Region fx:constant="USE_PREF_SIZE" />
</minWidth>
</Label>
<Label fx:id="name" styleClass="cell_big_label" text="\$name" wrapText="true"/>
</children>
</HBox>
<Label fx:id="status" alignment="TOP_CENTER" contentDisplay="RIGHT" styleClass="cell_big_label" text="\$status" textAlignment="RIGHT" GridPane.columnIndex="1" GridPane.halignment="RIGHT" />
Expand All @@ -49,7 +45,7 @@
</VBox.margin>
</GridPane>
<Label fx:id="priority" styleClass="cell_medium_label" text="\$priority" />
<Label fx:id="description" styleClass="cell_small_label" text="\$description" />
<Label fx:id="description" styleClass="cell_small_label" text="\$description" wrapText="true"/>
<Label fx:id="deadline" styleClass="cell_small_label" text="\$deadline" />
</VBox>
<rowConstraints>
Expand Down

0 comments on commit 63caa99

Please sign in to comment.