From 992e397deb021c38833b993f48c0dc988d3ae593 Mon Sep 17 00:00:00 2001 From: Rebecca Alpert Date: Fri, 10 Jul 2026 10:39:57 -0400 Subject: [PATCH] feat(Chatbot): Move scrollbar for embedded Move scrollbar to far right for embedded layouts only. --- packages/module/src/MessageBox/MessageBox.scss | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/module/src/MessageBox/MessageBox.scss b/packages/module/src/MessageBox/MessageBox.scss index e300b4586..cb7a30a89 100644 --- a/packages/module/src/MessageBox/MessageBox.scss +++ b/packages/module/src/MessageBox/MessageBox.scss @@ -24,7 +24,6 @@ } @media screen and (min-width: 64rem) { - .pf-chatbot--embedded, .pf-chatbot--drawer, .pf-chatbot--fullscreen { .pf-chatbot__messagebox { @@ -32,6 +31,20 @@ width: 100%; } } + + /* + * Moves the scrollbar; see https://github.com/opendatahub-io/odh-dashboard/pull/8199 + */ + .pf-chatbot--embedded .pf-chatbot__messagebox { + width: 100%; + max-width: unset; + align-items: center; + } + + .pf-chatbot--embedded .pf-chatbot__messagebox > *:not(.pf-chatbot__messagebox-announcement) { + max-width: 60rem; + width: 100%; + } } .pf-chatbot.pf-m-compact {