Skip to content

Commit 1cb6727

Browse files
javier-godoypaodb
authored andcommitted
fix: align buttons in horizontal orientation
Close #174
1 parent f9d17f2 commit 1cb6727

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/twincolgrid/TwinColGrid.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ private VerticalLayout createVerticalContainer(boolean reverse) {
375375

376376
private VerticalLayout getVerticalButtonContainer() {
377377
fakeButtonContainerLabel.getElement().setProperty("innerHTML", " ");
378+
fakeButtonContainerLabel.setClassName("fake-button-container-label");
378379
updateFakeButtonContainerVisiblity();
379380

380381
VerticalLayout vButtonContainer =

src/main/resources/META-INF/resources/frontend/styles/twincol-grid.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@
4444
color: var(--lumo-error-text-color);
4545
}
4646

47+
.twincol-grid .fake-button-container-label {
48+
font-size: var(--lumo-font-size-s);
49+
margin-bottom: calc(var(--vaadin-button-margin, var(--lumo-space-xs))* -1);
50+
}

0 commit comments

Comments
 (0)