From cc4b980e1edadbbd88218cc6c99641da81ccb1e8 Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Thu, 26 Sep 2024 09:31:58 -0500 Subject: [PATCH] fix: restructure menu header for styling --- src/js/menu/media-chrome-menu.ts | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/js/menu/media-chrome-menu.ts b/src/js/menu/media-chrome-menu.ts index 924b04de2..c9ae9c174 100644 --- a/src/js/menu/media-chrome-menu.ts +++ b/src/js/menu/media-chrome-menu.ts @@ -141,17 +141,16 @@ template.innerHTML = /*html*/ ` transform: translate(-100%, 0); } - slot[name="header"] { - display: flex; + slot[name="header"][hidden] { + display: none; + } + + slot[name="header"]::slotted(*) { padding: .4em .7em; border-bottom: 1px solid rgb(255 255 255 / .25); cursor: default; } - slot[name="header"][hidden] { - display: none; - } - button[part~="back"] { background: none; color: inherit; @@ -197,7 +196,7 @@ template.innerHTML = /*html*/ `