From 4933413140ef03869baaf501acfd6b18a5e6e791 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 9 Nov 2023 17:53:35 +0100 Subject: [PATCH] Fix virtualizer with v2.0.10 (#18584) --- package.json | 2 +- .../media-player/ha-media-player-browse.ts | 1 + src/dialogs/quick-bar/ha-quick-bar.ts | 1 + .../config/integrations/dialog-add-integration.ts | 3 +++ .../config/voice-assistants/dialog-expose-entity.ts | 3 +++ src/panels/logbook/ha-panel-logbook.ts | 1 - yarn.lock | 12 ++++++------ 7 files changed, 15 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 3e50e807d8d2..041381d794f1 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@lit-labs/context": "0.4.1", "@lit-labs/motion": "1.0.6", "@lit-labs/observers": "2.0.2", - "@lit-labs/virtualizer": "2.0.8", + "@lit-labs/virtualizer": "2.0.10", "@lrnwebcomponents/simple-tooltip": "7.0.18", "@material/chips": "=14.0.0-canary.53b3cad2f.0", "@material/data-table": "=14.0.0-canary.53b3cad2f.0", diff --git a/src/components/media-player/ha-media-player-browse.ts b/src/components/media-player/ha-media-player-browse.ts index e5c895e74268..525befc13d90 100644 --- a/src/components/media-player/ha-media-player-browse.ts +++ b/src/components/media-player/ha-media-player-browse.ts @@ -899,6 +899,7 @@ export class HaMediaPlayerBrowse extends LitElement { overflow-y: auto; box-sizing: border-box; height: 100%; + position: relative; } /* HEADER */ diff --git a/src/dialogs/quick-bar/ha-quick-bar.ts b/src/dialogs/quick-bar/ha-quick-bar.ts index 07d823858d1c..2ee72cc5bcfa 100644 --- a/src/dialogs/quick-bar/ha-quick-bar.ts +++ b/src/dialogs/quick-bar/ha-quick-bar.ts @@ -766,6 +766,7 @@ export class QuickBar extends LitElement { haStyleDialog, css` mwc-list { + position: relative; --mdc-list-vertical-padding: 0; } .heading { diff --git a/src/panels/config/integrations/dialog-add-integration.ts b/src/panels/config/integrations/dialog-add-integration.ts index 31a56fb4b51a..62e86a587410 100644 --- a/src/panels/config/integrations/dialog-add-integration.ts +++ b/src/panels/config/integrations/dialog-add-integration.ts @@ -678,6 +678,9 @@ class AddIntegrationDialog extends LitElement { justify-content: center; margin: 24px 0; } + mwc-list { + position: relative; + } lit-virtualizer { contain: size layout !important; } diff --git a/src/panels/config/voice-assistants/dialog-expose-entity.ts b/src/panels/config/voice-assistants/dialog-expose-entity.ts index 97f94d90aee6..9f42f42d58a0 100644 --- a/src/panels/config/voice-assistants/dialog-expose-entity.ts +++ b/src/panels/config/voice-assistants/dialog-expose-entity.ts @@ -174,6 +174,9 @@ class DialogExposeEntity extends LitElement { --mdc-dialog-min-width: 500px; --mdc-dialog-max-width: 600px; } + mwc-list { + position: relative; + } lit-virtualizer { height: 500px; } diff --git a/src/panels/logbook/ha-panel-logbook.ts b/src/panels/logbook/ha-panel-logbook.ts index 9a93813793fd..d192b53edb65 100644 --- a/src/panels/logbook/ha-panel-logbook.ts +++ b/src/panels/logbook/ha-panel-logbook.ts @@ -240,7 +240,6 @@ export class HaPanelLogbook extends LitElement { margin-inline-start: initial; max-width: 100%; direction: var(--direction); - margin-bottom: -5px; } :host([narrow]) ha-date-range-picker { diff --git a/yarn.lock b/yarn.lock index 882b93586103..82af266bb0af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2122,13 +2122,13 @@ __metadata: languageName: node linkType: hard -"@lit-labs/virtualizer@npm:2.0.8": - version: 2.0.8 - resolution: "@lit-labs/virtualizer@npm:2.0.8" +"@lit-labs/virtualizer@npm:2.0.10": + version: 2.0.10 + resolution: "@lit-labs/virtualizer@npm:2.0.10" dependencies: - lit: "npm:^3.0.0" + lit: "npm:^2 || ^3" tslib: "npm:^2.0.3" - checksum: 124b3270200099de4153be5dae33fa38e479ac396a687cd2dac6ce27535c3294d25d502a739df726c7bee69a7138ee92ae4f89918b7b47c0a1a0e9de59ab1d1f + checksum: 30f08ee582809d6ef27b50c2cd799ebe362dcfd276ef511c0ebaf5707fd75152cb8705c4125c775a7ea943a76d7fa162f0300a33cf75d8aa701387a3ffa41d56 languageName: node linkType: hard @@ -9637,7 +9637,7 @@ __metadata: "@lit-labs/context": "npm:0.4.1" "@lit-labs/motion": "npm:1.0.6" "@lit-labs/observers": "npm:2.0.2" - "@lit-labs/virtualizer": "npm:2.0.8" + "@lit-labs/virtualizer": "npm:2.0.10" "@lokalise/node-api": "npm:12.0.0" "@lrnwebcomponents/simple-tooltip": "npm:7.0.18" "@material/chips": "npm:=14.0.0-canary.53b3cad2f.0"