mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Update padding checkbox
This commit is contained in:
parent
1d8c515da2
commit
a32809e14b
@ -20,6 +20,10 @@ class HaForm extends EventsMixin(PolymerElement) {
|
|||||||
.error {
|
.error {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
paper-checkbox {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 22px 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<template is="dom-if" if="[[_isArray(schema)]]" restamp="">
|
<template is="dom-if" if="[[_isArray(schema)]]" restamp="">
|
||||||
<template is="dom-if" if="[[error.base]]">
|
<template is="dom-if" if="[[error.base]]">
|
||||||
@ -96,7 +100,9 @@ class HaForm extends EventsMixin(PolymerElement) {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template is="dom-if" if="[[_equals(schema.type, "boolean")]]" restamp="">
|
<template is="dom-if" if="[[_equals(schema.type, "boolean")]]" restamp="">
|
||||||
|
<div>
|
||||||
<paper-checkbox checked="{{data}}">[[computeLabel(schema)]]</paper-checkbox>
|
<paper-checkbox checked="{{data}}">[[computeLabel(schema)]]</paper-checkbox>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template is="dom-if" if="[[_equals(schema.type, "select")]]" restamp="">
|
<template is="dom-if" if="[[_equals(schema.type, "select")]]" restamp="">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user