mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Fix inner border radius for disabled bar in automation/script rows (#24840)
This commit is contained in:
parent
34f8335a9d
commit
db6c728cd6
@ -652,8 +652,18 @@ export default class HaAutomationActionRow extends LitElement {
|
|||||||
.disabled-bar {
|
.disabled-bar {
|
||||||
background: var(--divider-color, #e0e0e0);
|
background: var(--divider-color, #e0e0e0);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top-right-radius: var(--ha-card-border-radius, 12px);
|
border-top-right-radius: calc(
|
||||||
border-top-left-radius: var(--ha-card-border-radius, 12px);
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
|
border-top-left-radius: calc(
|
||||||
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
.warning ul {
|
.warning ul {
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
|
@ -535,8 +535,18 @@ export default class HaAutomationConditionRow extends LitElement {
|
|||||||
.disabled-bar {
|
.disabled-bar {
|
||||||
background: var(--divider-color, #e0e0e0);
|
background: var(--divider-color, #e0e0e0);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top-right-radius: var(--ha-card-border-radius, 12px);
|
border-top-right-radius: calc(
|
||||||
border-top-left-radius: var(--ha-card-border-radius, 12px);
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
|
border-top-left-radius: calc(
|
||||||
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
.testing {
|
.testing {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -552,8 +562,18 @@ export default class HaAutomationConditionRow extends LitElement {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: max-height 0.3s;
|
transition: max-height 0.3s;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top-right-radius: var(--ha-card-border-radius, 12px);
|
border-top-right-radius: calc(
|
||||||
border-top-left-radius: var(--ha-card-border-radius, 12px);
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
|
border-top-left-radius: calc(
|
||||||
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
.testing.active {
|
.testing.active {
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
|
@ -681,8 +681,18 @@ export default class HaAutomationTriggerRow extends LitElement {
|
|||||||
.disabled-bar {
|
.disabled-bar {
|
||||||
background: var(--divider-color, #e0e0e0);
|
background: var(--divider-color, #e0e0e0);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top-right-radius: var(--ha-card-border-radius, 12px);
|
border-top-right-radius: calc(
|
||||||
border-top-left-radius: var(--ha-card-border-radius, 12px);
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
|
border-top-left-radius: calc(
|
||||||
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
.triggered {
|
.triggered {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -699,8 +709,18 @@ export default class HaAutomationTriggerRow extends LitElement {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: max-height 0.3s;
|
transition: max-height 0.3s;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top-right-radius: var(--ha-card-border-radius, 12px);
|
border-top-right-radius: calc(
|
||||||
border-top-left-radius: var(--ha-card-border-radius, 12px);
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
|
border-top-left-radius: calc(
|
||||||
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
.triggered.active {
|
.triggered.active {
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
|
@ -327,8 +327,18 @@ export default class HaScriptFieldRow extends LitElement {
|
|||||||
.disabled-bar {
|
.disabled-bar {
|
||||||
background: var(--divider-color, #e0e0e0);
|
background: var(--divider-color, #e0e0e0);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top-right-radius: var(--ha-card-border-radius, 12px);
|
border-top-right-radius: calc(
|
||||||
border-top-left-radius: var(--ha-card-border-radius, 12px);
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
|
border-top-left-radius: calc(
|
||||||
|
var(--ha-card-border-radius, 12px) - var(
|
||||||
|
--ha-card-border-width,
|
||||||
|
1px
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-list-item[disabled] {
|
ha-list-item[disabled] {
|
||||||
|
@ -321,8 +321,12 @@ export class HaCardConditionEditor extends LitElement {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: max-height 0.3s;
|
transition: max-height 0.3s;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-top-right-radius: var(--ha-card-border-radius, 12px);
|
border-top-right-radius: calc(
|
||||||
border-top-left-radius: var(--ha-card-border-radius, 12px);
|
var(--ha-card-border-radius, 12px) - var(--ha-card-border-width, 1px)
|
||||||
|
);
|
||||||
|
border-top-left-radius: calc(
|
||||||
|
var(--ha-card-border-radius, 12px) - var(--ha-card-border-width, 1px)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
.testing.active {
|
.testing.active {
|
||||||
max-height: 100px;
|
max-height: 100px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user