From 9fbdb9757b22c2bb9afe5061137bfe4b3b755e91 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 23 Jan 2021 21:07:45 -0500 Subject: Update popup menu structure (#1301) * Wrap menu items in popup-menu-body * Use bodyNode instead of node * Update selector * Update _setPosition to not use items --- ext/mixed/css/material.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/mixed/css') diff --git a/ext/mixed/css/material.css b/ext/mixed/css/material.css index c9277088..ec55120b 100644 --- a/ext/mixed/css/material.css +++ b/ext/mixed/css/material.css @@ -928,11 +928,13 @@ button.icon-button:active { border-radius: var(--menu-border-radius); background-color: var(--background-color-light); padding: 0.5em 0; + min-width: 8em; + overflow: auto; +} +.popup-menu-body { display: flex; flex-flow: column nowrap; align-items: stretch; - min-width: 8em; - overflow: auto; white-space: nowrap; } button.popup-menu-item { -- cgit v1.2.3