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
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:
@@ -61,6 +61,13 @@ export const SpoolmanLayout: React.FC<SpoolmanLayoutProps> = ({ children }) => (
|
|||||||
)}
|
)}
|
||||||
Footer={() => <SpoolmanFooter />}
|
Footer={() => <SpoolmanFooter />}
|
||||||
>
|
>
|
||||||
{children}
|
<div
|
||||||
|
style={{
|
||||||
|
maxWidth: 1400,
|
||||||
|
margin: "0 auto",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
</ThemedLayout>
|
</ThemedLayout>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user