Fix sidebar notices in collapsed mode
This commit is contained in:
parent
30da67da1a
commit
6ae0edcc1e
2 changed files with 11 additions and 16 deletions
|
@ -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,
|
||||
|
|
|
@ -109,7 +109,7 @@ export function LeftPaneDialog({
|
|||
}
|
||||
|
||||
let xButton: ReactNode;
|
||||
if (hasXButton) {
|
||||
if (hasXButton && containerWidthBreakpoint !== WidthBreakpoint.Narrow) {
|
||||
xButton = (
|
||||
<div className={`${BASE_CLASS_NAME}__container-close`}>
|
||||
<button
|
||||
|
@ -124,11 +124,12 @@ export function LeftPaneDialog({
|
|||
);
|
||||
}
|
||||
|
||||
const className = classNames([
|
||||
BASE_CLASS_NAME,
|
||||
type === undefined ? undefined : `${BASE_CLASS_NAME}--${type}`,
|
||||
onClick === undefined ? undefined : `${BASE_CLASS_NAME}--clickable`,
|
||||
]);
|
||||
const className = classNames(BASE_CLASS_NAME, {
|
||||
[`${BASE_CLASS_NAME}--width-narrow`]:
|
||||
containerWidthBreakpoint === WidthBreakpoint.Narrow,
|
||||
[`${BASE_CLASS_NAME}--${type}`]: type != null,
|
||||
[`${BASE_CLASS_NAME}--clickable`]: onClick != null,
|
||||
});
|
||||
|
||||
const message = (
|
||||
<>
|
||||
|
@ -143,7 +144,9 @@ export function LeftPaneDialog({
|
|||
<>
|
||||
<div className={`${BASE_CLASS_NAME}__container`}>
|
||||
{typeof icon === 'string' ? <div className={iconClassName} /> : icon}
|
||||
{containerWidthBreakpoint !== WidthBreakpoint.Narrow && (
|
||||
<div className={`${BASE_CLASS_NAME}__message`}>{message}</div>
|
||||
)}
|
||||
</div>
|
||||
{xButton}
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue