Skip to content

Commit

Permalink
Fix style regressions from #2801 (#2803)
Browse files Browse the repository at this point in the history
Regression from #2801.

During testing, it looked good, but in production it introduced some
styling issues.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Oct 6, 2024
1 parent 3efc1a8 commit 2dc7d72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
.oh-col >
.oh-masonry-item >
.oh-card
--f7-safe-area-left 0px
--f7-safe-area-right 0px
--f7-safe-area-top 0px
--f7-safe-area-bottom 0px
margin-left var(--f7-card-margin-horizontal)
margin-right var(--f7-card-margin-horizontal)
</style>

<script>
Expand Down
15 changes: 9 additions & 6 deletions bundles/org.openhab.ui/web/src/css/app.styl
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,12 @@ html
color var(--f7-input-text-color)

// Fix safe area issues inside f7-card components, where safe areas are already respected by the f7-card itself
.card >
div
--f7-safe-area-left 0px
--f7-safe-area-right 0px
--f7-safe-area-top 0px
--f7-safe-area-bottom 0px
.card
.block
padding-left var(--f7-block-padding-horizontal) !important
padding-right var(--f7-block-padding-horizontal) !important
.media-item
.item-content
padding-left var(--f7-list-item-padding-horizontal)
.item-inner
padding-right var(--f7-list-item-padding-horizontal)

0 comments on commit 2dc7d72

Please sign in to comment.