layout issues

This commit is contained in:
Matthias Hochmeister
2026-03-12 14:23:57 +01:00
parent 21b7be22db
commit 81174c2498
3 changed files with 20 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ const ChatPanelInner: React.FC = () => {
sx={{ sx={{
width: COLLAPSED_WIDTH, width: COLLAPSED_WIDTH,
height: '100%', height: '100%',
display: 'flex', display: { xs: 'none', sm: 'flex' },
flexDirection: 'column', flexDirection: 'column',
alignItems: 'center', alignItems: 'center',
pt: 1, pt: 1,
@@ -89,7 +89,12 @@ const ChatPanelInner: React.FC = () => {
<Paper <Paper
elevation={2} elevation={2}
sx={{ sx={{
width: EXPANDED_WIDTH, width: { xs: '100vw', sm: EXPANDED_WIDTH },
position: { xs: 'fixed', sm: 'relative' },
top: { xs: 0, sm: 'auto' },
right: { xs: 0, sm: 'auto' },
bottom: { xs: 0, sm: 'auto' },
zIndex: { xs: (theme) => theme.zIndex.drawer + 2, sm: 'auto' },
height: '100%', height: '100%',
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',

View File

@@ -41,6 +41,7 @@ function DashboardLayoutInner({ children }: DashboardLayoutProps) {
minHeight: '100vh', minHeight: '100vh',
backgroundColor: 'background.default', backgroundColor: 'background.default',
transition: 'width 225ms cubic-bezier(0.4, 0, 0.6, 1)', transition: 'width 225ms cubic-bezier(0.4, 0, 0.6, 1)',
minWidth: 0,
}} }}
> >
<Toolbar /> <Toolbar />

View File

@@ -139,9 +139,21 @@ function Header({ onMenuClick }: HeaderProps) {
aria-label="FF Rems Tools" aria-label="FF Rems Tools"
aria-controls="tools-menu" aria-controls="tools-menu"
aria-haspopup="true" aria-haspopup="true"
sx={{ display: { xs: 'none', sm: 'inline-flex' } }}
> >
FF Rems Tools FF Rems Tools
</Button> </Button>
<Tooltip title="FF Rems Tools">
<IconButton
color="inherit"
onClick={handleToolsOpen}
size="small"
aria-label="FF Rems Tools"
sx={{ display: { xs: 'inline-flex', sm: 'none' } }}
>
<Launch />
</IconButton>
</Tooltip>
<Menu <Menu
id="tools-menu" id="tools-menu"