It’s only being designed for a single sized tablet, so I’m not worrying about any resizing “weirdness” it would produce.
The widget has this:
uid: PanelV2DEV
tags: []
timestamp: Nov 26, 2021, 8:49:42 PM
component: f7-card
config:
style:
padding: 20px
margin: 0px auto
width: 100%
height: 650px
background-image: -webkit-linear-gradient(rgba(143,188,143,0.6) 0%,rgba(143,188,143,0.3) 100%),url("https://openhab.domain.com/webres/background/cog-board.jpg")
background-size: 100% 100%
The padding ensures there’s a gap between background image and the rest of the widget (would also prevent content of the widget from being right up to edge of screen if it worked).
Why do it like this?
As you can’t change the background of a page with variables/expressions, but you can change the backgrounds on widgets, this is my attempt to get around the issue.
My knowledge of CSS and, especially, how to use it with the OH3 UI is relatively limited, so I’m hoping someone can suggest a way to do this (or categorically confirm it can’t be done).
Hi,
Canvas layout?
Is that in the new 3.2 release? If so, then looks like my next job is upgrade my 3.1
I’ve tried the block and responsive/masonry layouts and my post above shows the results of that.
I’ve started playing with some “dirty” css with mixed results (negative margins and other horrors)
Hi Oliver,
I did that whilst trying to identify the problem and it seemed to be in the same div element that the other css items on this post were being added.
This space is in both Edge and Chrome, full and “normal” screen.
When using the Developer Tools (F12) I can see the elements broken down like this:
class=“oh-canvas-layout”
Hi, Is there any news on this feature? I’m using 3.2.0 but I’m not able to remove the white external border in cavass layout in any way, I’m trying everything, the only alternative for a tablet is to use Habpanel, buit I really would like to use mainui instead. Thanks in advance.
This is what I’m talking about: