mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-13 13:00:24 +00:00
Compare commits
1 Commits
add-automa
...
feature/sa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eefaf6dd0b |
@@ -246,11 +246,7 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
|
|||||||
</ha-list-item>
|
</ha-list-item>
|
||||||
</ha-button-menu>
|
</ha-button-menu>
|
||||||
|
|
||||||
<ha-config-section
|
<div class="content">
|
||||||
.narrow=${this.narrow}
|
|
||||||
.isWide=${this.isWide}
|
|
||||||
full-width
|
|
||||||
>
|
|
||||||
${repairsIssues.length || canInstallUpdates.length
|
${repairsIssues.length || canInstallUpdates.length
|
||||||
? html`<ha-card outlined>
|
? html`<ha-card outlined>
|
||||||
${repairsIssues.length
|
${repairsIssues.length
|
||||||
@@ -321,7 +317,7 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
|
|||||||
></ha-config-navigation>
|
></ha-config-navigation>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
<ha-tip .hass=${this.hass}>${this._tip}</ha-tip>
|
<ha-tip .hass=${this.hass}>${this._tip}</ha-tip>
|
||||||
</ha-config-section>
|
</div>
|
||||||
</ha-top-app-bar-fixed>
|
</ha-top-app-bar-fixed>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@@ -392,10 +388,19 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
|
|||||||
:host(:not([narrow])) ha-card:last-child {
|
:host(:not([narrow])) ha-card:last-child {
|
||||||
margin-bottom: max(24px, var(--safe-area-inset-bottom));
|
margin-bottom: max(24px, var(--safe-area-inset-bottom));
|
||||||
}
|
}
|
||||||
ha-config-section {
|
.content {
|
||||||
margin: auto;
|
display: flex;
|
||||||
margin-top: -32px;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 24px;
|
||||||
|
margin-top: 24px;
|
||||||
|
margin-left: var(--safe-area-content-inset-left);
|
||||||
|
margin-right: var(--safe-area-content-inset-right);
|
||||||
|
}
|
||||||
|
.content > * {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
ha-card {
|
ha-card {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -419,8 +424,10 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: unset;
|
box-shadow: unset;
|
||||||
}
|
}
|
||||||
ha-config-section {
|
.content {
|
||||||
margin-top: -42px;
|
margin-top: -1px;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ export class HaConfigSection extends LitElement {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
padding: 28px 20px 0;
|
padding: 28px max(20px, var(--safe-area-content-inset-right)) 0
|
||||||
|
max(20px, var(--safe-area-content-inset-left));
|
||||||
max-width: 1040px;
|
max-width: 1040px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -612,7 +612,7 @@ class HaPanelDevAction extends LitElement {
|
|||||||
padding: max(16px, var(--safe-area-inset-top))
|
padding: max(16px, var(--safe-area-inset-top))
|
||||||
max(16px, var(--safe-area-inset-right))
|
max(16px, var(--safe-area-inset-right))
|
||||||
max(16px, var(--safe-area-inset-bottom))
|
max(16px, var(--safe-area-inset-bottom))
|
||||||
max(16px, var(--safe-area-inset-left));
|
max(16px, var(--safe-area-content-inset-left));
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
@@ -621,7 +621,7 @@ class HaPanelDevAction extends LitElement {
|
|||||||
padding: max(8px, var(--safe-area-inset-top))
|
padding: max(8px, var(--safe-area-inset-top))
|
||||||
max(16px, var(--safe-area-inset-right))
|
max(16px, var(--safe-area-inset-right))
|
||||||
max(8px, var(--safe-area-inset-bottom))
|
max(8px, var(--safe-area-inset-bottom))
|
||||||
max(16px, var(--safe-area-inset-left));
|
max(16px, var(--safe-area-content-inset-left));
|
||||||
border-top: 1px solid var(--divider-color);
|
border-top: 1px solid var(--divider-color);
|
||||||
border-bottom: 1px solid var(--divider-color);
|
border-bottom: 1px solid var(--divider-color);
|
||||||
background: var(--card-background-color);
|
background: var(--card-background-color);
|
||||||
|
|||||||
Reference in New Issue
Block a user