diff --git a/stylesheets/components/LeftPaneDialog.scss b/stylesheets/components/LeftPaneDialog.scss index 7f6822ca3..8663d7334 100644 --- a/stylesheets/components/LeftPaneDialog.scss +++ b/stylesheets/components/LeftPaneDialog.scss @@ -34,7 +34,7 @@ letter-spacing: -0.0025em; font-weight: 400; - .module-left-pane--width-narrow & { + &--width-narrow { padding-inline-start: 36px; } @@ -56,10 +56,6 @@ &__container-close { display: flex; justify-content: flex-end; - - .module-left-pane--width-narrow & { - display: none; - } } &__spinner-container { @@ -169,10 +165,6 @@ &__message { width: 100%; - - .module-left-pane--width-narrow & { - display: none; - } } &__message, diff --git a/ts/components/LeftPaneDialog.tsx b/ts/components/LeftPaneDialog.tsx index e338a0e34..bfc12cffe 100644 --- a/ts/components/LeftPaneDialog.tsx +++ b/ts/components/LeftPaneDialog.tsx @@ -109,7 +109,7 @@ export function LeftPaneDialog({ } let xButton: ReactNode; - if (hasXButton) { + if (hasXButton && containerWidthBreakpoint !== WidthBreakpoint.Narrow) { xButton = (