I like to align an oh-icon object with a oh-button, but get different results in the mainUI widget designer vs. the actual page, where I’m using it.
While designing it, the widget is displayed as desired,
Using it in a cell on a pages, it looks misaligned,
The proportion of the columns is fine, but the hight of the oh-buttons, especially the 2nd one, is not like expected. I haven’t found a way yet to get this straighten out.
Any suggestions are welcome!
Code:
component: f7-card
config:
class:
- padding
style:
border-radius: 20px
background-color: rgba(255,255,255)
--text-color: rgba(0,0,0,1)
slots:
default:
- component: f7-row
slots:
default:
- component: f7-col
config:
width: 35
slots:
default:
- component: f7-row
slots:
default:
- component: oh-icon
config:
icon: vacationbw
height: 35px
- component: f7-row
config:
class:
- padding-top
slots:
default:
- component: oh-icon
config:
icon: snowbw
height: 35px
- component: f7-col
config:
width: 65
slots:
default:
- component: f7-row
config:
class:
- button
- button-large
- align-items-center
slots:
default:
- component: oh-button
config:
style:
position: absolute
width: 100%
height: 100%
- component: oh-icon
config:
icon: power
style:
height: 30px
- component: Label
config:
text: ON
style:
font-size: 18px
color: var(--text-color)
- component: f7-row
config:
class:
- padding-top
- button
- button-large
- align-items-center
slots:
default:
- component: oh-button
config:
style:
position: absolute
width: 100%
height: 100%
- component: oh-icon
config:
icon: power
style:
height: 30px
- component: Label
config:
text: ON
style:
font-size: 18px
color: var(--text-color)