mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Always set ha-wa-dialog position to fixed (#28301)
This commit is contained in:
@@ -381,10 +381,6 @@ export class DemoHaWaDialog extends LitElement {
|
|||||||
<td><code>--dialog-z-index</code></td>
|
<td><code>--dialog-z-index</code></td>
|
||||||
<td>Z-index for the dialog.</td>
|
<td>Z-index for the dialog.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td><code>--dialog-surface-position</code></td>
|
|
||||||
<td>CSS position of the dialog surface.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>--dialog-surface-margin-top</code></td>
|
<td><code>--dialog-surface-margin-top</code></td>
|
||||||
<td>Top margin for the dialog surface.</td>
|
<td>Top margin for the dialog surface.</td>
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ export type DialogWidth = "small" | "medium" | "large" | "full";
|
|||||||
* @cssprop --ha-dialog-surface-background - Dialog background color.
|
* @cssprop --ha-dialog-surface-background - Dialog background color.
|
||||||
* @cssprop --ha-dialog-border-radius - Border radius of the dialog surface.
|
* @cssprop --ha-dialog-border-radius - Border radius of the dialog surface.
|
||||||
* @cssprop --dialog-z-index - Z-index for the dialog.
|
* @cssprop --dialog-z-index - Z-index for the dialog.
|
||||||
* @cssprop --dialog-surface-position - CSS position of the dialog surface.
|
|
||||||
* @cssprop --dialog-surface-margin-top - Top margin for the dialog surface.
|
* @cssprop --dialog-surface-margin-top - Top margin for the dialog surface.
|
||||||
*
|
*
|
||||||
* @attr {boolean} open - Controls the dialog open state.
|
* @attr {boolean} open - Controls the dialog open state.
|
||||||
@@ -244,7 +243,6 @@ export class HaWaDialog extends LitElement {
|
|||||||
calc(var(--safe-height) - var(--ha-space-20))
|
calc(var(--safe-height) - var(--ha-space-20))
|
||||||
);
|
);
|
||||||
min-height: var(--ha-dialog-min-height);
|
min-height: var(--ha-dialog-min-height);
|
||||||
position: var(--dialog-surface-position, relative);
|
|
||||||
margin-top: var(--dialog-surface-margin-top, auto);
|
margin-top: var(--dialog-surface-margin-top, auto);
|
||||||
/* Used to offset the dialog from the safe areas when space is limited */
|
/* Used to offset the dialog from the safe areas when space is limited */
|
||||||
transform: translate(
|
transform: translate(
|
||||||
|
|||||||
Reference in New Issue
Block a user