Skip to content

Commit 2c92eb0

Browse files
Made search button in Web search wider. Also skewed side panel titles to the left (#8463)
* Made Search button in Web Search panel as wide as the Add group button of the Groups side panel. fixes #8397 * Skewed side pane title to the left. fixes #8397 * Recorded change to CHANGELOG.md fixes #8397 * Corrected type in CHANGELOG.md fixes #8397 * Deleted forgotten comment fixes #8397
1 parent 83c6840 commit 2c92eb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
1313

1414
### Changed
1515

16+
- We made the Search button in Web Search wider. We also skewed the panel titles to the left [#8397](https://github.com/JabRef/jabref/issues/8397)
17+
1618
### Fixed
1719

1820
- We fixed an issue where an exception could occur when saving the preferences [#7614](https://github.com/JabRef/jabref/issues/7614)

src/main/java/org/jabref/gui/importer/fetcher/WebSearchPaneView.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.jabref.gui.importer.fetcher;
22

33
import javafx.css.PseudoClass;
4-
import javafx.geometry.Pos;
54
import javafx.scene.control.Button;
65
import javafx.scene.control.ComboBox;
76
import javafx.scene.control.TextField;
@@ -88,8 +87,7 @@ private void initialize() {
8887
Button search = new Button(Localization.lang("Search"));
8988
search.setDefaultButton(false);
9089
search.setOnAction(event -> viewModel.search());
91-
92-
setAlignment(Pos.CENTER);
90+
search.setMaxWidth(Double.MAX_VALUE);
9391
getChildren().addAll(fetcherContainer, query, search);
9492
}
9593
}

src/main/java/org/jabref/gui/sidepane/SidePaneComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private Node createHeaderView() {
6161
Label label = new Label(sidePaneType.getTitle());
6262

6363
BorderPane headerView = new BorderPane();
64-
headerView.setCenter(label);
64+
headerView.setLeft(label);
6565
headerView.setRight(buttonContainer);
6666
headerView.getStyleClass().add("sidePaneComponentHeader");
6767

0 commit comments

Comments
 (0)