From fb6cd03b5ae8f0f093c739c9c943033f43b8e82f Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 7 Dec 2024 16:49:19 -0800 Subject: [PATCH] ui: Use collapse instead of dropdown for notification in Bootstrap 5 - In Bootstrap 5, dropdown button and dropdown menu not being siblings does not work like it did in Bootstrap 4. - Use collapse component instead of dropdown. Collapse component does not have the same limitations. Apply some of the styling from dropdown-menu to restore previous appearance. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- plinth/templates/notifications-dropdown.html | 4 ++-- plinth/templates/notifications.html | 4 ++-- static/themes/default/css/main.css | 15 ++++++++++++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/plinth/templates/notifications-dropdown.html b/plinth/templates/notifications-dropdown.html index f016fd6f0..50e9c132c 100644 --- a/plinth/templates/notifications-dropdown.html +++ b/plinth/templates/notifications-dropdown.html @@ -7,9 +7,9 @@ {% load i18n %} {% if notifications %} -