Reduce padding of action buttons in notification to prevent truncation

This commit is contained in:
Christoph Atteneder 2018-11-13 16:10:46 +01:00
parent 0ac911bbdf
commit 887249afe4
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B
2 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,7 @@ bg color of non edit textFields: fafafa
-fx-text-fill: -bs-rd-white;
}
.compact-button, .table-cell .jfx-button {
.compact-button, .table-cell .jfx-button, .action-button.compact-button {
-fx-padding: 0 10 0 10;
}

View File

@ -198,6 +198,7 @@ public class Notification extends Overlay<Notification> {
headlineIcon.setManaged(true);
headlineIcon.setVisible(true);
headlineIcon.setPadding(new Insets(1));
actionButton.getStyleClass().add("compact-button");
FormBuilder.getIconForLabel(AwesomeIcon.INFO_SIGN, headlineIcon, "1em");
}