From 177f619b1249c75fbf2959bbbf482c7717866737 Mon Sep 17 00:00:00 2001 From: David Woloszyn Date: Mon, 30 Jan 2023 11:29:00 +1100 Subject: [PATCH] MDL-76947 css: Fixed layout regression on dropdown menus --- theme/boost/scss/moodle/core.scss | 5 ++--- theme/boost/style/moodle.css | 5 ++--- theme/classic/style/moodle.css | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index 4a512c79377..2228d28ac31 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -3032,12 +3032,11 @@ blockquote { border-left: 5px solid $gray-400; } -/** Prevent long strings exceeding page width */ +/* Prevent long strings exceeding page width */ .page-header-headings, .coursename, .categoryname, -.breadcrumb-item, -.dropdown-item { +.breadcrumb-item { &:not(.text-truncate) { word-break: normal; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 890bda04121..0e5d02e38a3 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -12328,12 +12328,11 @@ blockquote { color: #495057; border-left: 5px solid #ced4da; } -/** Prevent long strings exceeding page width */ +/* Prevent long strings exceeding page width */ .page-header-headings:not(.text-truncate), .coursename:not(.text-truncate), .categoryname:not(.text-truncate), -.breadcrumb-item:not(.text-truncate), -.dropdown-item:not(.text-truncate) { +.breadcrumb-item:not(.text-truncate) { word-break: normal; overflow-wrap: anywhere; white-space: normal; } diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 3644c64f060..70eaaceb4fa 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -12328,12 +12328,11 @@ blockquote { color: #495057; border-left: 5px solid #ced4da; } -/** Prevent long strings exceeding page width */ +/* Prevent long strings exceeding page width */ .page-header-headings:not(.text-truncate), .coursename:not(.text-truncate), .categoryname:not(.text-truncate), -.breadcrumb-item:not(.text-truncate), -.dropdown-item:not(.text-truncate) { +.breadcrumb-item:not(.text-truncate) { word-break: normal; overflow-wrap: anywhere; white-space: normal; }