From fd61ecbf584052e45b79fa059a2ed12ca4dbe00f Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 22 Aug 2017 17:43:27 -0700 Subject: [PATCH] Editor: Allow menubar scrolling on small screens. --- editor/css/dark.css | 4 +++- editor/css/light.css | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/editor/css/dark.css b/editor/css/dark.css index 215bd9cee6..117390ee57 100644 --- a/editor/css/dark.css +++ b/editor/css/dark.css @@ -110,11 +110,13 @@ select { } #menubar .menu .options { - position: absolute; + position: fixed; display: none; padding: 5px 0; background: #111; width: 150px; + max-height: calc(100% - 80px); + overflow: auto; } #menubar .menu:hover .options { diff --git a/editor/css/light.css b/editor/css/light.css index 3eeb4b951f..ac7b73b7e1 100644 --- a/editor/css/light.css +++ b/editor/css/light.css @@ -106,11 +106,13 @@ select { } #menubar .menu .options { - position: absolute; + position: fixed; display: none; padding: 5px 0; background: #eee; width: 150px; + max-height: calc(100% - 80px); + overflow: auto; } #menubar .menu:hover .options { -- GitLab