diff --git a/src/dialogs/config-flow/step-flow-create-entry.ts b/src/dialogs/config-flow/step-flow-create-entry.ts index 327b5b783a..eac44ccff9 100644 --- a/src/dialogs/config-flow/step-flow-create-entry.ts +++ b/src/dialogs/config-flow/step-flow-create-entry.ts @@ -316,6 +316,12 @@ class StepFlowCreateEntry extends LitElement { overflow-y: auto; flex-direction: column; } + @media all and (max-width: 450px), all and (max-height: 500px) { + .devices { + /* header - margin content - footer */ + max-height: calc(100vh - 52px - 20px - 52px); + } + } .device { border: 1px solid var(--divider-color); padding: 6px; @@ -352,11 +358,6 @@ class StepFlowCreateEntry extends LitElement { margin-inline-start: auto; margin-inline-end: initial; } - @media all and (max-width: 450px), all and (max-height: 500px) { - .device { - width: 100%; - } - } .error { color: var(--error-color); }