Fix wide toasts in debuglog window

This commit is contained in:
Jamie Kyle 2024-03-21 15:51:22 -07:00 committed by GitHub
parent 43a26fb017
commit 1480c3f13a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View file

@ -30,7 +30,7 @@
} }
.ToastManager--narrow-sidebar & { .ToastManager--narrow-sidebar & {
min-width: max-content; width: max-content;
} }
.ToastManager--narrow-sidebar.ToastManager--composition-area-visible & { .ToastManager--narrow-sidebar.ToastManager--composition-area-visible & {

View file

@ -12,7 +12,6 @@ import * as log from '../logging/log';
import { Button, ButtonVariant } from './Button'; import { Button, ButtonVariant } from './Button';
import { Spinner } from './Spinner'; import { Spinner } from './Spinner';
import { ToastManager } from './ToastManager'; import { ToastManager } from './ToastManager';
import { WidthBreakpoint } from './_util';
import { createSupportUrl } from '../util/createSupportUrl'; import { createSupportUrl } from '../util/createSupportUrl';
import { shouldNeverBeCalled } from '../util/shouldNeverBeCalled'; import { shouldNeverBeCalled } from '../util/shouldNeverBeCalled';
import { openLinkInWebBrowser } from '../util/openLinkInWebBrowser'; import { openLinkInWebBrowser } from '../util/openLinkInWebBrowser';
@ -157,7 +156,7 @@ export function DebugLogWindow({
onUndoArchive={shouldNeverBeCalled} onUndoArchive={shouldNeverBeCalled}
openFileInFolder={shouldNeverBeCalled} openFileInFolder={shouldNeverBeCalled}
toast={toast} toast={toast}
containerWidthBreakpoint={WidthBreakpoint.Narrow} containerWidthBreakpoint={null}
/> />
</div> </div>
); );
@ -213,7 +212,7 @@ export function DebugLogWindow({
onUndoArchive={shouldNeverBeCalled} onUndoArchive={shouldNeverBeCalled}
openFileInFolder={shouldNeverBeCalled} openFileInFolder={shouldNeverBeCalled}
toast={toast} toast={toast}
containerWidthBreakpoint={WidthBreakpoint.Narrow} containerWidthBreakpoint={null}
/> />
</div> </div>
); );

View file

@ -27,7 +27,7 @@ export type PropsType = {
toast?: AnyToast; toast?: AnyToast;
megaphone?: AnyActionableMegaphone; megaphone?: AnyActionableMegaphone;
centerToast?: boolean; centerToast?: boolean;
containerWidthBreakpoint: WidthBreakpoint; containerWidthBreakpoint: WidthBreakpoint | null;
isCompositionAreaVisible?: boolean; isCompositionAreaVisible?: boolean;
}; };