Ability to click megaphone in narrow sidebar to expand sidebar

This commit is contained in:
ayumi-signal
2026-01-16 14:22:18 -08:00
committed by GitHub
parent 1c8b7fc45d
commit d6fc5ac6e3
15 changed files with 79 additions and 52 deletions

View File

@@ -74,7 +74,7 @@ import { getPreferredBadgeSelector } from '../selectors/badges.preload.js';
import { SmartProfileEditor } from './ProfileEditor.preload.js';
import { useNavActions } from '../ducks/nav.std.js';
import { NavTab } from '../../types/Nav.std.js';
import { SmartToastManager } from './ToastManager.preload.js';
import { renderToastManagerWithoutMegaphone } from './ToastManager.preload.js';
import { useToastActions } from '../ducks/toast.preload.js';
import { DataReader, DataWriter } from '../../sql/Client.preload.js';
import { deleteAllMyStories } from '../../util/deleteAllMyStories.preload.js';
@@ -157,12 +157,6 @@ function renderProfileEditor(options: {
return <SmartProfileEditor contentsRef={options.contentsRef} />;
}
function renderToastManager(props: {
containerWidthBreakpoint: WidthBreakpoint;
}): React.JSX.Element {
return <SmartToastManager disableMegaphone {...props} />;
}
function renderDonationsPane({
contentsRef,
settingsLocation,
@@ -937,7 +931,7 @@ export function SmartPreferences(): React.JSX.Element | null {
renderNotificationProfilesCreateFlow
}
renderProfileEditor={renderProfileEditor}
renderToastManager={renderToastManager}
renderToastManager={renderToastManagerWithoutMegaphone}
renderUpdateDialog={renderUpdateDialog}
renderPreferencesChatFoldersPage={renderPreferencesChatFoldersPage}
renderPreferencesEditChatFolderPage={