fix: Move upgrade button to top of editor (#2687)

This commit is contained in:
Dermot Duffy
2026-08-14 21:13:10 -07:00
committed by GitHub
parent c2f25861ea
commit 858c5d0610
13 changed files with 297 additions and 55 deletions
+6 -1
View File
@@ -370,6 +370,11 @@ export interface MountOptions {
width?: string;
height?: string;
// The element the container is created as, for a test about behavior the card
// offers only *within* a particular Home Assistant element (e.g. its card
// edit dialog, which the card looks for among its ancestors).
containerTagName?: string;
// Where that container is placed, as CSS lengths from the page's top left
// corner. The page grows to reach it, so a card put beyond the window can
// only be brought into view by scrolling.
@@ -424,7 +429,7 @@ export class MountedCard {
) {
this._hass = hass;
this._container = document.createElement('div');
this._container = document.createElement(options?.containerTagName ?? 'div');
this._container.style.width = options?.width ?? DEFAULT_CONTAINER_WIDTH;
if (options?.height) {
this._container.style.height = options.height;