From b3370747581327531c029c1981864f4cbd743f32 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 5 Jun 2023 13:48:16 +0200 Subject: [PATCH] Fix collapsed masonry view in safari (#16772) --- src/panels/lovelace/views/hui-masonry-view.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/panels/lovelace/views/hui-masonry-view.ts b/src/panels/lovelace/views/hui-masonry-view.ts index 60d4154099..20cf91f640 100644 --- a/src/panels/lovelace/views/hui-masonry-view.ts +++ b/src/panels/lovelace/views/hui-masonry-view.ts @@ -320,6 +320,11 @@ export class MasonryView extends LitElement implements LovelaceViewElement { min-width: 0; } + /* Fix for safari */ + .column:has(> *) { + flex-grow: 1; + } + .column:not(:has(> *:not([hidden]))) { flex-grow: 0; }