You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/04/12 06:04:55 UTC

[causeway] branch master updated: CAUSEWAY-3401: css fix for additional buttons

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/master by this push:
     new 770b9509de CAUSEWAY-3401: css fix for additional buttons
770b9509de is described below

commit 770b9509dea1175fdbd759e9d9b8b70e03d08209
Author: andi-huber <ah...@apache.org>
AuthorDate: Wed Apr 12 08:04:50 2023 +0200

    CAUSEWAY-3401: css fix for additional buttons
    
    - top align button group in the context of non-editable properties
---
 .../wicket/ui/components/scalars/ScalarPanelFormFieldAbstract.html   | 2 +-
 .../ui/pages/common/bootstrap/css/bootstrap-overrides-all-v2.css     | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/scalars/ScalarPanelFormFieldAbstract.html b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/scalars/ScalarPanelFormFieldAbstract.html
index 02ac87352e..e010bc47fa 100644
--- a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/scalars/ScalarPanelFormFieldAbstract.html
+++ b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/scalars/ScalarPanelFormFieldAbstract.html
@@ -92,7 +92,7 @@
 				<wicket:container 
 					wicket:id="container-scalarValue" />
 					
-				<div class="btn-group btn-group-sm" role="group">
+				<div class="btn-group btn-group-sm additionalButtons" role="group">
        				<!-- additional buttons -->
        				<button wicket:id="scalarValueView-buttons" 
        					class="btn" type="button">
diff --git a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/bootstrap/css/bootstrap-overrides-all-v2.css b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/bootstrap/css/bootstrap-overrides-all-v2.css
index 41a66c15f5..6516cc852e 100644
--- a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/bootstrap/css/bootstrap-overrides-all-v2.css
+++ b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/pages/common/bootstrap/css/bootstrap-overrides-all-v2.css
@@ -560,6 +560,11 @@ span.containedButtonPanel {
 	margin-right: 2px;
 }
 
+/** top alignment for additional buttons on scalar value inputs */
+.scalarValueInput .additionalButtons .btn-group {
+  vertical-align: top;
+}
+
 /* from additionalLinksPanel.css */
 
 .additionalLinkList {