From 545cc7bffcf4fc68377ea56907b507617d10347f Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Thu, 25 Sep 2025 02:17:53 -0400 Subject: [PATCH] set fixed height for copy passphrase button --- desktop/src/main/java/haveno/desktop/haveno.css | 8 ++++++++ .../desktop/main/overlays/windows/OfferDetailsWindow.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/haveno/desktop/haveno.css b/desktop/src/main/java/haveno/desktop/haveno.css index 3eae67086b..e7b6e110b0 100644 --- a/desktop/src/main/java/haveno/desktop/haveno.css +++ b/desktop/src/main/java/haveno/desktop/haveno.css @@ -2215,6 +2215,14 @@ textfield */ -fx-background-color: derive(-bs-buy, -10%); } +#copy-button-thin { + -fx-background-color: -bs-buy; + -fx-text-fill: -bs-white; + -fx-min-height: 30px; + -fx-max-height: 30px; + -fx-pref-height: 30px; +} + #sell-button-big { -fx-background-color: -bs-sell; -fx-text-fill: -bs-white; diff --git a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java index c1dba2b71c..6dd1debaa4 100644 --- a/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java +++ b/desktop/src/main/java/haveno/desktop/main/overlays/windows/OfferDetailsWindow.java @@ -421,7 +421,7 @@ public class OfferDetailsWindow extends Overlay { UserThread.runAfter(() -> tp.hide(), 1); tp.show(node, e.getScreenX() + Layout.PADDING, e.getScreenY() + Layout.PADDING); }); - copyButton.setId("buy-button"); + copyButton.setId("copy-button-thin"); copyButton.setFocusTraversable(false); vbox.getChildren().addAll(centerLabel, copyButton);