Skip to content

A platform for community discussion. Free, open, simple.

UX: Adjust welcome banner search-menu when there are AI discoveries (#34957)

Roman Rizzi491573a47027
diff --git a/plugins/discourse-ai/assets/stylesheets/modules/ai-bot/common/ai-discobot-discoveries.scss b/plugins/discourse-ai/assets/stylesheets/modules/ai-bot/common/ai-discobot-discoveries.scss
index aaab4575dfc..690478ffd7c 100644
--- a/plugins/discourse-ai/assets/stylesheets/modules/ai-bot/common/ai-discobot-discoveries.scss
+++ b/plugins/discourse-ai/assets/stylesheets/modules/ai-bot/common/ai-discobot-discoveries.scss
@@ -115,9 +115,19 @@
}
@include viewport.from(lg) {
- .search-menu .menu-panel:has(.ai-search-discoveries__discoveries-title) {
+ .welcome-banner .menu-panel:has(.ai-search-discoveries__discoveries-title) {
+ width: calc(90vw - var(--d-sidebar-width) - 1em);
+ max-width: 900px;
+ min-width: 100%;
+ }
+
+ .search-menu.glimmer-search-menu
+ .menu-panel:has(.ai-search-discoveries__discoveries-title) {
width: 80vw;
max-width: 900px;
+ }
+
+ .search-menu .menu-panel:has(.ai-search-discoveries__discoveries-title) {
transition: width 0.5s;
.results {