warungpos-ui / src /layouts /POSLayout.jsx
Mhamdans17
fix: tightly lock POS layout height and prevent body overscroll
e2c1c25
Raw
History Blame Contribute Delete
402 Bytes
import { Outlet } from 'react-router-dom';
import Navbar from '../components/Navbar';
export default function POSLayout() {
return (
<div className="bg-[var(--color-bg)]" style={{ position: 'fixed', inset: 0, display: 'flex', flexDirection: 'column', overflow: 'hidden' }}>
<Navbar />
<main style={{ flex: 1, overflow: 'hidden' }}>
<Outlet />
</main>
</div>
);
}