Dashboard UI fixes (#5160)

Fixes #5152
Fixes #5150
Fixes #5148
This commit is contained in:
Bram Kragten 2020-03-12 20:09:55 +01:00 committed by GitHub
parent 3b1f9a5dab
commit 06cd7556f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 16 deletions

View File

@ -293,9 +293,6 @@ export class DialogLovelaceDashboardDetail extends LitElement {
return [
haStyleDialog,
css`
.form {
padding-bottom: 24px;
}
ha-switch {
padding: 16px 0;
}

View File

@ -210,9 +210,6 @@ export class DialogLovelaceResourceDetail extends LitElement {
return [
haStyleDialog,
css`
.form {
padding-bottom: 24px;
}
.warning {
color: var(--error-color);
}

View File

@ -272,10 +272,6 @@ class DialogZoneDetail extends LitElement {
return [
haStyleDialog,
css`
.form {
padding-bottom: 24px;
color: var(--primary-text-color);
}
.location {
display: flex;
}
@ -298,9 +294,6 @@ class DialogZoneDetail extends LitElement {
a {
color: var(--primary-color);
}
p {
color: var(--primary-text-color);
}
`,
];
}

View File

@ -203,9 +203,16 @@ export const haStyleDialog = css`
ha-dialog {
--mdc-dialog-min-width: 400px;
--mdc-dialog-max-width: 600px;
--mdc-dialog-title-ink-color: var(--primary-text-color);
--mdc-dialog-heading-ink-color: var(--primary-text-color);
--justify-action-buttons: space-between;
color: var(--primary-text-color);
}
ha-dialog .form {
padding-bottom: 24px;
color: var(--primary-text-color);
}
/* make dialog fullscreen on small screens */
@media all and (max-width: 450px), all and (max-height: 500px) {
ha-dialog {

View File

@ -882,8 +882,8 @@
"new_dashboard": "Add new dashboard",
"dismiss": "Close",
"show_sidebar": "Show in sidebar",
"icon": "Sidebar icon",
"title": "Sidebar title",
"icon": "Icon",
"title": "Title",
"title_required": "Title is required.",
"url": "Url",
"url_error_msg": "The url can not contain spaces or special characters, except for _ and -",