Skip to content

Commit a36da66

Browse files
committed
refactor(mobile): inline the composer tab sizing check
1 parent dc9c46e commit a36da66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/mobile/src/features/threads/ThreadComposer.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
562562
const isVoiceInputPresented = voicePresentation.statusLabel !== null;
563563
const isExpanded = isFocused || settingsSheetPresentation.keepsComposerExpanded;
564564
const { setComposerEditing } = useAdaptiveWorkspaceLayout();
565-
const sidebarTabs = useSidebarWorkspaceTabs();
566-
const usesLargeControls = (Platform.OS === "ios" && Platform.isPad) || sidebarTabs === "picker";
565+
const usesLargeControls =
566+
useSidebarWorkspaceTabs() === "picker" || (Platform.OS === "ios" && Platform.isPad);
567567
const [compactRowWidth, setCompactRowWidth] = useState(0);
568568
const compactAttachmentLimit = compactRowWidth >= 500 ? 3 : 1;
569569
const compactEditor = useCompactComposerEditor(bodyText, draftMessage);

0 commit comments

Comments
 (0)