MediaGallery: fixed panel now goes full-width (100%) on mobile instead of the inaccessible 320px right sidebar. Added 'Media Gallery' MenuItem to RoomMenu (visible only on mobile) so users can open it from the More Options (···) button. MembersDrawer: removed ScreenSize.Desktop gate in Room.tsx so it now renders on mobile too. CSS media query (≤750px) makes it position:fixed inset:0 width:100% on mobile instead of the 266px desktop sidebar. Added 'Members' MenuItem to RoomMenu for mobile access. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
71 lines
1.4 KiB
TypeScript
71 lines
1.4 KiB
TypeScript
import { keyframes, style } from '@vanilla-extract/css';
|
|
import { config, toRem } from 'folds';
|
|
|
|
export const MembersDrawer = style({
|
|
width: toRem(266),
|
|
'@media': {
|
|
'(max-width: 750px)': {
|
|
position: 'fixed',
|
|
inset: 0,
|
|
width: '100%',
|
|
zIndex: 500,
|
|
},
|
|
},
|
|
});
|
|
|
|
export const MembersDrawerHeader = style({
|
|
flexShrink: 0,
|
|
padding: `0 ${config.space.S200} 0 ${config.space.S300}`,
|
|
borderBottomWidth: config.borderWidth.B300,
|
|
});
|
|
|
|
export const MemberDrawerContentBase = style({
|
|
position: 'relative',
|
|
overflow: 'hidden',
|
|
});
|
|
|
|
export const MemberDrawerContent = style({
|
|
padding: `${config.space.S200} 0`,
|
|
});
|
|
|
|
const ScrollBtnAnime = keyframes({
|
|
'0%': {
|
|
transform: `translate(-50%, -100%) scale(0)`,
|
|
},
|
|
'100%': {
|
|
transform: `translate(-50%, 0) scale(1)`,
|
|
},
|
|
});
|
|
|
|
export const DrawerScrollTop = style({
|
|
position: 'absolute',
|
|
top: config.space.S200,
|
|
left: '50%',
|
|
transform: 'translateX(-50%)',
|
|
zIndex: 1,
|
|
animation: `${ScrollBtnAnime} 100ms`,
|
|
});
|
|
|
|
export const DrawerGroup = style({
|
|
paddingLeft: config.space.S200,
|
|
});
|
|
|
|
export const MembersGroup = style({
|
|
paddingLeft: config.space.S200,
|
|
});
|
|
export const MembersGroupLabel = style({
|
|
padding: config.space.S200,
|
|
selectors: {
|
|
'&:not(:first-child)': {
|
|
paddingTop: config.space.S500,
|
|
},
|
|
},
|
|
});
|
|
|
|
export const DrawerVirtualItem = style({
|
|
position: 'absolute',
|
|
top: 0,
|
|
left: 0,
|
|
width: '100%',
|
|
});
|