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 [ return [
haStyleDialog, haStyleDialog,
css` css`
.form {
padding-bottom: 24px;
}
ha-switch { ha-switch {
padding: 16px 0; padding: 16px 0;
} }

View File

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

View File

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

View File

@ -203,9 +203,16 @@ export const haStyleDialog = css`
ha-dialog { ha-dialog {
--mdc-dialog-min-width: 400px; --mdc-dialog-min-width: 400px;
--mdc-dialog-max-width: 600px; --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; --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 */ /* make dialog fullscreen on small screens */
@media all and (max-width: 450px), all and (max-height: 500px) { @media all and (max-width: 450px), all and (max-height: 500px) {
ha-dialog { ha-dialog {

View File

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