From 25cec83cd6ed2ba916604e896bfbee3a43d432d1 Mon Sep 17 00:00:00 2001 From: Bas Brands Date: Tue, 3 Aug 2021 12:04:48 +0200 Subject: [PATCH] MDL-72267 theme_boost: prevent dropdowns to overflow drawer --- theme/boost/scss/moodle/drawer.scss | 4 ++++ theme/boost/style/moodle.css | 3 +++ theme/classic/style/moodle.css | 3 +++ 3 files changed, 10 insertions(+) diff --git a/theme/boost/scss/moodle/drawer.scss b/theme/boost/scss/moodle/drawer.scss index 365fad85ce8..396bf20665e 100644 --- a/theme/boost/scss/moodle/drawer.scss +++ b/theme/boost/scss/moodle/drawer.scss @@ -254,4 +254,8 @@ $right-drawer-width: 320px; flex-wrap: nowrap; overflow-y: auto; padding: 0.5rem; + .dropdown-menu .dropdown-item { + width: 220px; + white-space: normal; + } } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 2bcfc669f2c..855843fb10c 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -14407,6 +14407,9 @@ body.drawer-ease { flex-wrap: nowrap; overflow-y: auto; padding: 0.5rem; } + .drawercontent .dropdown-menu .dropdown-item { + width: 220px; + white-space: normal; } #page-my-index { background-color: #f7f7f7; } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 60c4f73915d..c940114895e 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -14630,6 +14630,9 @@ body.drawer-ease { flex-wrap: nowrap; overflow-y: auto; padding: 0.5rem; } + .drawercontent .dropdown-menu .dropdown-item { + width: 220px; + white-space: normal; } #page-my-index { background-color: #f7f7f7; }