Skip to content

Commit

Permalink
Fix Buttongrid alignment on desktop
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng committed Jan 8, 2024
1 parent 5a09f71 commit 4022662
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%label%
</span>
</div>
<div class="mdl-form__row-buttongrid mdl-form__row--height-auto mdl-cell mdl-cell--12-col %visibility_class%">
<div class="mdl-form__row mdl-cell mdl-cell--12-col mdl-form__row--height-auto %visibility_class%">
<div
class="mdl-form__control mdl-form__buttongrid mdl-grid"
data-control-type="buttons"
Expand Down
9 changes: 2 additions & 7 deletions bundles/org.openhab.ui.basic/web-src/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@
display: none;
}
}
&__row-buttongrid {
margin: 0;
border-bottom: 1px solid $item-separator-color;
&:last-child {
border: none;
}
}
&__image {
&.mdl-form__control {
padding-left: 0;
Expand Down Expand Up @@ -434,6 +427,8 @@
}
&__buttongrid {
padding: 0;
display: flex;
width: 100%;
}
&--no-label {
.mdl-form__title {
Expand Down
3 changes: 1 addition & 2 deletions bundles/org.openhab.ui.basic/web-src/_theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ body {
color: var(--container-text-color, #616161) !important;
}

.mdl-form__row,
.mdl-form__row-buttongrid {
.mdl-form__row {
border-bottom: 1px solid #ccc;
border-bottom: 1px solid var(--border-color, #ccc);
color: #616161 !important;
Expand Down

0 comments on commit 4022662

Please sign in to comment.