From 708c2d0c3f3806cd747f999b8713ac1b317b24d4 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 18 Jul 2024 16:34:07 +0000 Subject: [PATCH] Style fixes --- .../xpipe/app/browser/BrowserBookmarkHeaderComp.java | 11 +++++------ .../java/io/xpipe/app/fxcomps/impl/FilterComp.java | 1 + .../io/xpipe/app/resources/style/bookmark.css | 2 +- .../io/xpipe/app/resources/style/filter-comp.css | 0 4 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 app/src/main/resources/io/xpipe/app/resources/style/filter-comp.css diff --git a/app/src/main/java/io/xpipe/app/browser/BrowserBookmarkHeaderComp.java b/app/src/main/java/io/xpipe/app/browser/BrowserBookmarkHeaderComp.java index 8aaef604c..9583381c6 100644 --- a/app/src/main/java/io/xpipe/app/browser/BrowserBookmarkHeaderComp.java +++ b/app/src/main/java/io/xpipe/app/browser/BrowserBookmarkHeaderComp.java @@ -42,12 +42,11 @@ public final class BrowserBookmarkHeaderComp extends SimpleComp { var top = new HorizontalComp(List.of(category, filter)) .apply(struc -> struc.get().setFillHeight(true)) .apply(struc -> { - ((Region) struc.get().getChildren().get(0)) - .prefHeightProperty() - .bind(((Region) struc.get().getChildren().get(1)).heightProperty()); - ((Region) struc.get().getChildren().get(0)) - .minWidthProperty() - .bind(struc.get().widthProperty().divide(2.0)); + var first = ((Region) struc.get().getChildren().get(0)); + var second = ((Region) struc.get().getChildren().get(1)); + first.prefHeightProperty().bind(second.heightProperty()); + first.minHeightProperty().bind(second.heightProperty()); + first.maxHeightProperty().bind(second.heightProperty()); }) .styleClass("bookmarks-header") .createRegion(); diff --git a/app/src/main/java/io/xpipe/app/fxcomps/impl/FilterComp.java b/app/src/main/java/io/xpipe/app/fxcomps/impl/FilterComp.java index 34a8ca7e2..90197fd51 100644 --- a/app/src/main/java/io/xpipe/app/fxcomps/impl/FilterComp.java +++ b/app/src/main/java/io/xpipe/app/fxcomps/impl/FilterComp.java @@ -35,6 +35,7 @@ public class FilterComp extends Comp> { } }); var filter = new CustomTextField(); + filter.setMinHeight(0); filter.setMaxHeight(2000); filter.getStyleClass().add("filter-comp"); filter.promptTextProperty().bind(AppI18n.observable("searchFilter")); diff --git a/app/src/main/resources/io/xpipe/app/resources/style/bookmark.css b/app/src/main/resources/io/xpipe/app/resources/style/bookmark.css index af4f7429b..94f1783df 100644 --- a/app/src/main/resources/io/xpipe/app/resources/style/bookmark.css +++ b/app/src/main/resources/io/xpipe/app/resources/style/bookmark.css @@ -36,5 +36,5 @@ -fx-min-height: 3.3em; -fx-pref-height: 3.3em; -fx-max-height: 3.3em; - -fx-padding: 10 6 10 8; + -fx-padding: 9 6 9 8; } diff --git a/app/src/main/resources/io/xpipe/app/resources/style/filter-comp.css b/app/src/main/resources/io/xpipe/app/resources/style/filter-comp.css deleted file mode 100644 index e69de29bb..000000000