Skip to content

Commit

Permalink
fix issue JabRef#10507
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS-crypto committed Oct 29, 2023
1 parent b7e51dd commit bb51bae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/jabref/gui/Base.css
Original file line number Diff line number Diff line change
Expand Up @@ -1447,3 +1447,8 @@ We want to have a look that matches our icons in the tool-bar */
.table-column .rotated > .label {
-fx-content-display: graphic-only;
}

.customGenerateButton {
-fx-padding: 0.5em 2em; /* Used 'em' values for scalability */
-fx-min-width: 10em; /* This is just a placeholder value; adjust as necessary */
}
3 changes: 1 addition & 2 deletions src/main/java/org/jabref/gui/EntryTypeView.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ public EntryTypeView(LibraryTab libraryTab, DialogService dialogService, Prefere
});

Button btnGenerate = (Button) this.getDialogPane().lookupButton(generateButton);

btnGenerate.setStyle("-fx-padding: 6 20px; -fx-min-width: 150px;"); // Changes the button length
btnGenerate.getStyleClass().add("customGenerateButton");

btnGenerate.textProperty().bind(EasyBind.map(viewModel.searchingProperty(), searching -> searching ? Localization.lang("Searching...") : Localization.lang("Generate")));
btnGenerate.disableProperty().bind(viewModel.idFieldValidationStatus().validProperty().not().or(viewModel.searchingProperty()));
Expand Down

0 comments on commit bb51bae

Please sign in to comment.