Skip to content

Commit

Permalink
Todo list layout fixes (#19150)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Dec 27, 2023
1 parent a2ffd0a commit 3aa612b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 5 additions & 3 deletions src/panels/calendar/dialog-calendar-event-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,11 @@ class DialogCalendarEventEditor extends LitElement {
return [
haStyleDialog,
css`
ha-dialog {
--mdc-dialog-min-width: min(600px, 95vw);
--mdc-dialog-max-width: min(600px, 95vw);
@media all and (min-width: 450px and min-height: 500px) {
ha-dialog {
--mdc-dialog-min-width: min(600px, 95vw);
--mdc-dialog-max-width: min(600px, 95vw);
}
}
state-info {
line-height: 40px;
Expand Down
8 changes: 5 additions & 3 deletions src/panels/todo/dialog-todo-item-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@ class DialogTodoItemEditor extends LitElement {
return [
haStyleDialog,
css`
ha-dialog {
--mdc-dialog-min-width: min(600px, 95vw);
--mdc-dialog-max-width: min(600px, 95vw);
@media all and (min-width: 450px and min-height: 500px) {
ha-dialog {
--mdc-dialog-min-width: min(600px, 95vw);
--mdc-dialog-max-width: min(600px, 95vw);
}
}
ha-alert {
display: block;
Expand Down
3 changes: 2 additions & 1 deletion src/panels/todo/ha-panel-todo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ class PanelTodo extends LitElement {
flex-direction: row;
justify-content: center;
margin: 8px;
padding-bottom: 70px;
}
.column {
flex: 1 0 0;
Expand Down Expand Up @@ -411,7 +412,7 @@ class PanelTodo extends LitElement {
display: block;
}
ha-fab {
position: absolute;
position: fixed;
right: 16px;
bottom: 16px;
}
Expand Down

0 comments on commit 3aa612b

Please sign in to comment.