From 370b349aa35581405ec6362ff543236c31f3b25d Mon Sep 17 00:00:00 2001 From: chen levy Date: Thu, 5 Oct 2023 17:32:17 +0300 Subject: [PATCH] MDL-78103 theme: Fixed dropdown menu size by the content --- theme/boost/scss/moodle/dropdown.scss | 4 ++++ theme/boost/style/moodle.css | 4 ++++ theme/classic/style/moodle.css | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/theme/boost/scss/moodle/dropdown.scss b/theme/boost/scss/moodle/dropdown.scss index 8329f602d6a..bdf83c22073 100644 --- a/theme/boost/scss/moodle/dropdown.scss +++ b/theme/boost/scss/moodle/dropdown.scss @@ -36,6 +36,10 @@ } } +.dropdown-menu { + width: fit-content; +} + // Add dropdown menu items styles for each theme color (mantainning default hover colour for contrast). @each $color, $value in $theme-colors { .dropdown-item.text-#{$color} { diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index a7dbfe5d0bd..52ebe7320c4 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -38732,6 +38732,10 @@ div.editor_atto_toolbar button .icon { font-size: 0.7rem; } +.dropdown-menu { + width: fit-content; +} + .dropdown-item.text-primary { color: #0f6cbf; } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 86e5106fa3c..1479e7fa986 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -38666,6 +38666,10 @@ div.editor_atto_toolbar button .icon { font-size: 0.7rem; } +.dropdown-menu { + width: fit-content; +} + .dropdown-item.text-primary { color: #0f6cbf; }