diff --git a/frontend/public/style/_overrides.scss b/frontend/public/style/_overrides.scss index c51017ce67a..b9c0d436736 100644 --- a/frontend/public/style/_overrides.scss +++ b/frontend/public/style/_overrides.scss @@ -44,6 +44,14 @@ $masthead-logo-max-height: 60px; } } +// Upstream PatternFly LogViewer bug https://github.com/patternfly/react-log-viewer/issues/106 +// Prevent scrollIntoView in LogViewer from horizontally scrolling the drawer__main container when searching pod logs with wrap lines disabled. +// Workaround: Apply overflow: clip to remove the element from being a scroll container entirely, so scrollIntoView skips it. +// This prevents the page shift without affecting the log viewer's own horizontal scrolling. +#content .pf-v6-c-drawer__main { + overflow: clip; +} + .odc-catalog-tile { // Get rid of weird stretching of catalog grid items .pf-v6-c-card__header-main {