Drop the 1100px max-width cap and size the chat shell to fill the content area (100dvh - 100px = top bar + main bottom padding), so Odin uses the whole page now that it owns the route. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
25 lines
559 B
TypeScript
25 lines
559 B
TypeScript
import Typography from "@mui/material/Typography";
|
|
import { PageEnter } from "../ui";
|
|
import { useAuth } from "../context/AuthContext";
|
|
import OdinChat from "../components/odin/OdinChat";
|
|
|
|
export default function Odin() {
|
|
const { hasPermission } = useAuth();
|
|
|
|
if (!hasPermission("ai.use")) {
|
|
return (
|
|
<PageEnter>
|
|
<Typography variant="body1" color="text.secondary">
|
|
Nemáte oprávnění pro AI asistenta.
|
|
</Typography>
|
|
</PageEnter>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<PageEnter>
|
|
<OdinChat />
|
|
</PageEnter>
|
|
);
|
|
}
|