mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 02:06:42 +00:00
Make padding on settings row content consistent (#12139)
This commit is contained in:
parent
637e4203e5
commit
d30e8ee9d8
@ -471,6 +471,7 @@ export class HaServiceControl extends LitElement {
|
|||||||
}
|
}
|
||||||
ha-settings-row {
|
ha-settings-row {
|
||||||
--paper-time-input-justify-content: flex-end;
|
--paper-time-input-justify-content: flex-end;
|
||||||
|
--settings-row-content-width: 100%;
|
||||||
border-top: var(
|
border-top: var(
|
||||||
--service-control-items-border-top,
|
--service-control-items-border-top,
|
||||||
1px solid var(--divider-color)
|
1px solid var(--divider-color)
|
||||||
@ -489,9 +490,6 @@ export class HaServiceControl extends LitElement {
|
|||||||
margin: var(--service-control-padding, 0 16px);
|
margin: var(--service-control-padding, 0 16px);
|
||||||
padding: 16px 0;
|
padding: 16px 0;
|
||||||
}
|
}
|
||||||
:host(:not([narrow])) ha-settings-row ha-selector {
|
|
||||||
width: 60%;
|
|
||||||
}
|
|
||||||
.checkbox-spacer {
|
.checkbox-spacer {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ export class HaSettingsRow extends LitElement {
|
|||||||
<div secondary><slot name="description"></slot></div>
|
<div secondary><slot name="description"></slot></div>
|
||||||
</paper-item-body>
|
</paper-item-body>
|
||||||
</div>
|
</div>
|
||||||
<slot></slot>
|
<div class="content"><slot></slot></div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,6 +43,18 @@ export class HaSettingsRow extends LitElement {
|
|||||||
);
|
);
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
.content {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
:host(:not([narrow])) .content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
flex: 1;
|
||||||
|
padding: 16px 0;
|
||||||
|
}
|
||||||
|
.content ::slotted(*) {
|
||||||
|
width: var(--settings-row-content-width);
|
||||||
|
}
|
||||||
:host([narrow]) {
|
:host([narrow]) {
|
||||||
align-items: normal;
|
align-items: normal;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -326,12 +326,9 @@ export class HaBlueprintAutomationEditor extends LitElement {
|
|||||||
}
|
}
|
||||||
ha-settings-row {
|
ha-settings-row {
|
||||||
--paper-time-input-justify-content: flex-end;
|
--paper-time-input-justify-content: flex-end;
|
||||||
|
--settings-row-content-width: 100%;
|
||||||
border-top: 1px solid var(--divider-color);
|
border-top: 1px solid var(--divider-color);
|
||||||
}
|
}
|
||||||
:host(:not([narrow])) ha-settings-row ha-textfield,
|
|
||||||
:host(:not([narrow])) ha-settings-row ha-selector {
|
|
||||||
width: 60%;
|
|
||||||
}
|
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ export class HuiCardOptions extends LitElement {
|
|||||||
outline: 2px solid var(--primary-color);
|
outline: 2px solid var(--primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
:host:not(.panel) ::slotted(*) {
|
:host(:not(.panel)) ::slotted(*) {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user