Skip to content

Commit

Permalink
Merge pull request #646 from dlsc-software-consulting-gmbh/fix-text-w…
Browse files Browse the repository at this point in the history
…rape

Refine logic for determining short titles.
  • Loading branch information
dlemmermann committed Jul 25, 2024
2 parents be64bc1 + 44ada54 commit b20fd6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public MobilePageHeader() {

BooleanBinding longTitleProperty = Bindings.createBooleanBinding(() -> {
String title = getTitle();
boolean isShortTitle = title == null || title.split(" ").length < 7 || title.length() < 38;
boolean isShortTitle = title == null || (title.split(" ").length < 7 && title.length() < 35);
return getIcon() == null && getPreviewImage() == null && !isShortTitle;
}, widthProperty(), iconProperty(), previewImageProperty(), titleProperty());

Expand Down

0 comments on commit b20fd6b

Please sign in to comment.