Skip to content

Commit

Permalink
fix: layout responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
j4marcos committed May 27, 2024
1 parent c93ad68 commit 5e51113
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function ChatsPane(props: ChatsPaneProps) {
sx={{
borderRight: '1px solid',
borderColor: 'divider',
height: 'calc(100dvh - var(--Header-height))',
height: { sm: 'calc(100dvh - var(--Header-height))', md: '100dvh' },
overflowY: 'auto',
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Header() {
return (
<Sheet
sx={{
display: { xs: 'flex', sm: 'none' },
display: { sm: 'flex', md: 'none' },
alignItems: 'center',
justifyContent: 'space-between',
position: 'fixed',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function MessagesPane(props: MessagesPaneProps) {
return (
<Sheet
sx={{
height: { xs: 'calc(100dvh - var(--Header-height))', lg: '100dvh' },
height: { xs: 'calc(100dvh - var(--Header-height))', md: '100dvh' },
display: 'flex',
flexDirection: 'column',
backgroundColor: 'background.level1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function MyProfile() {
flex: 1,
width: '100%',
mx: 'auto',
pt: { xs: 'var(--Header-height)', sm: 0 },
pt: { xs: 'var(--Header-height)', md: 0 },
display: 'grid',
gridTemplateColumns: {
xs: '1fr',
Expand Down

0 comments on commit 5e51113

Please sign in to comment.