Skip to content

Commit

Permalink
Fix double-space between index and name
Browse files Browse the repository at this point in the history
The spacing attribute for HBox in PersonListCard.fxml is set to '5',
causing it to look like a double-space is present in the Person
List Card (e.g. 1.  John)

Let's reduce the spacing attribute of the HBox in
PersonListCard.fxml (which determines the spacing between child
elements) to 0.5, which seems to produce the desired gap, so that
it looks like a single space is present instead of double
(e.g. 1. John).
  • Loading branch information
baskargopinath authored Jun 13, 2024
1 parent 6c19411 commit d925b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/view/PersonListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<padding>
<Insets top="5" right="5" bottom="5" left="15" />
</padding>
<HBox spacing="5" alignment="CENTER_LEFT">
<HBox spacing="0.5" alignment="CENTER_LEFT">
<Label fx:id="id" styleClass="cell_big_label">
<minWidth>
<!-- Ensures that the label text is never truncated -->
Expand Down

0 comments on commit d925b35

Please sign in to comment.