fix(app): Lot F review polish (tests, drawer default)
Measure kept as a canvas-width annotation, no console.log; positive two-frame wait replaces the fixed sleep; 64rem listener asserted absent in the editor; drawer default read from DEFAULT_SHELL; long test lines wrapped.
This commit is contained in:
1 parent
580ff28214
commit
62fb8dc7b8
3 files changed
+31
-9
No files matched your search
@@ -4,6 +4,7 @@ import { AnimatePresence, motion, useReducedMotion } from 'motion/react'
|
||||
import Brand from '@/components/brand/Brand'
|
||||
import Icon from '@/components/ui/Icon'
|
||||
import ModalDialog from '@/components/ui/ModalDialog'
|
||||
import { DEFAULT_SHELL } from './ShellChrome'
|
||||
import SidebarNav from './SidebarNav'
|
||||
import SignOutButton from './SignOutButton'
|
||||
import UserBadge from './UserBadge'
|
||||
@@ -17,7 +18,7 @@ export interface MobileDrawerProps {
|
||||
}
|
||||
|
||||
/** Left-side navigation drawer for small screens (transform + opacity only). */
|
||||
export default function MobileDrawer({ open, onClose, closesFrom = '64rem' }: MobileDrawerProps) {
|
||||
export default function MobileDrawer({ open, onClose, closesFrom = DEFAULT_SHELL.closesFrom }: MobileDrawerProps) {
|
||||
return (
|
||||
<AnimatePresence>
|
||||
{open && <DrawerSurface onClose={onClose} closesFrom={closesFrom} />}
|
||||
|
||||
Reference in new issue
Block a user