headers form fields now in flex box and with max width and gaps

This commit is contained in:
2026-06-03 20:59:45 +02:00
parent ad4d9ab12c
commit af6809874c
4 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ interface IProps {
const CustomHeaders = ({ headers, updateHeaders }: IProps) => {
return (
<div className="mt-4 w-full">
<div className="mt-4 w-full max-w-175">
<details className="bg-(--neutral-content)/20 p-4 rounded-lg">
<summary>
Custom Headers (PDF)
@@ -19,7 +19,7 @@ const CustomHeaders = ({ headers, updateHeaders }: IProps) => {
</p>
</summary>
<div>
<form className="grid place-items-center gap-4 sm:grid-cols-2 mt-2">
<form className="flex flex-wrap mt-2 justify-center gap-4">
<FormField
fieldName="title"
type="text"
+2 -2
View File
@@ -9,14 +9,14 @@ interface IProps {
const HeaderFields = ({ headers, updateHeaders }: IProps) => {
return (
<div className="mt-4 w-full">
<div className="mt-4 w-full max-w-175">
<details className="bg-(--neutral-content)/15 p-4 rounded-lg">
<summary>
Headers
<p className="text-sm font-normal">Edit the game PGN headers</p>
</summary>
<div>
<form className="grid place-items-center gap-4 sm:grid-cols-2 mt-2">
<form className="flex flex-wrap mt-2 justify-center gap-4">
<FormField
fieldName="event"
type="text"
+2 -2
View File
@@ -46,9 +46,9 @@ const Chessboard = () => {
/>
</Section>
<div className="grid grid-cols-2 gap-4">
<div className="grid lg:grid-cols-2 gap-4">
<Suspense fallback={<LoadingBoard />}>
<div>
<div className="mx-auto">
<PgnViewer
gamePgn={gameState.pgn || ""}
handlePlyChange={handlePlyChange}