Skip to content

Commit

Permalink
fix scroll issues (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard authored May 16, 2024
1 parent 68b321a commit 6295895
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function App() {
<Box
display="flex"
height="100vh"
maxHeight="-webkit-fill-available"
width="100vw"
sx={{ overflowX: 'hidden' }}
>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/organisms/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ const Chat = () => {
</>
) : null}
<Stack width="100%">
<Box my={1} />
{error ? (
<Box
sx={{
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/hooks/useLayoutMaxWidth.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const useLayoutMaxWidth = () => {
// @ts-expect-error custom property
return window.theme?.layout === 'wide' ? '60rem' : '48rem';
return window.theme?.layout === 'wide'
? 'min(60rem, 100vw)'
: 'min(48rem, 100vw)';
};

export { useLayoutMaxWidth };

0 comments on commit 6295895

Please sign in to comment.