feat: Add layout max-width for better UX on wide screens (#4)
Some checks failed
CI / style (push) Has been cancelled
CI / build-client (push) Has been cancelled
CI / build-amd64 (push) Has been cancelled
CI / build-tester (push) Has been cancelled
CI / test (cockroachdb) (push) Has been cancelled
CI / test (mariadb) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / test (sqlite) (push) Has been cancelled
CI / build-arm64 (push) Has been cancelled
CI / build-armv7 (push) Has been cancelled
CI / publish-images (push) Has been cancelled
CI / publish-release (push) Has been cancelled

Changes:
- Add 1400px max-width container in SpoolmanLayout
- Add 800px max-width for forms via CSS override

This prevents the UI from feeling too spread out on wide monitors
and MacBooks, improving readability and reducing eye movement.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-14 19:59:38 -06:00
parent e14efa2b89
commit 66e956f021
2 changed files with 13 additions and 1 deletions

View File

@@ -60,7 +60,14 @@ export const SpoolmanLayout: React.FC<SpoolmanLayoutProps> = ({ children }) => (
/> />
)} )}
Footer={() => <SpoolmanFooter />} Footer={() => <SpoolmanFooter />}
>
<div
style={{
maxWidth: 1400,
margin: "0 auto",
}}
> >
{children} {children}
</div>
</ThemedLayout> </ThemedLayout>
); );

View File

@@ -1,3 +1,8 @@
#qty-input { #qty-input {
text-align: center !important; text-align: center !important;
} }
/* Constrain form width for better readability on wide screens */
.ant-form {
max-width: 800px;
}