mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 09:56:57 +00:00
headers form fields now in flex box and with max width and gaps
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
- favicon / og / json-sd
|
- og / json-sd
|
||||||
- rearrange buttons / header space - collapse on smaller screens
|
- rearrange buttons / header space - collapse on smaller screens
|
||||||
- Lichess login
|
- Lichess login
|
||||||
- logger
|
- logger
|
||||||
@@ -7,3 +7,5 @@
|
|||||||
- set game current position on game load to ply 0 and whatever the FEN is (starting position probably, but could be custom position)
|
- set game current position on game load to ply 0 and whatever the FEN is (starting position probably, but could be custom position)
|
||||||
- privacy policy - have no access to anything you generate, only keep a count of success/failed pdf generations with timestamp and error message
|
- privacy policy - have no access to anything you generate, only keep a count of success/failed pdf generations with timestamp and error message
|
||||||
- fix SSR related console errors etc
|
- fix SSR related console errors etc
|
||||||
|
- a11y and lighthouse fixes
|
||||||
|
- check wcag compliance
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ interface IProps {
|
|||||||
|
|
||||||
const CustomHeaders = ({ headers, updateHeaders }: IProps) => {
|
const CustomHeaders = ({ headers, updateHeaders }: IProps) => {
|
||||||
return (
|
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">
|
<details className="bg-(--neutral-content)/20 p-4 rounded-lg">
|
||||||
<summary>
|
<summary>
|
||||||
Custom Headers (PDF)
|
Custom Headers (PDF)
|
||||||
@@ -19,7 +19,7 @@ const CustomHeaders = ({ headers, updateHeaders }: IProps) => {
|
|||||||
</p>
|
</p>
|
||||||
</summary>
|
</summary>
|
||||||
<div>
|
<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
|
<FormField
|
||||||
fieldName="title"
|
fieldName="title"
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ interface IProps {
|
|||||||
|
|
||||||
const HeaderFields = ({ headers, updateHeaders }: IProps) => {
|
const HeaderFields = ({ headers, updateHeaders }: IProps) => {
|
||||||
return (
|
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">
|
<details className="bg-(--neutral-content)/15 p-4 rounded-lg">
|
||||||
<summary>
|
<summary>
|
||||||
Headers
|
Headers
|
||||||
<p className="text-sm font-normal">Edit the game PGN headers</p>
|
<p className="text-sm font-normal">Edit the game PGN headers</p>
|
||||||
</summary>
|
</summary>
|
||||||
<div>
|
<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
|
<FormField
|
||||||
fieldName="event"
|
fieldName="event"
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
@@ -46,9 +46,9 @@ const Chessboard = () => {
|
|||||||
/>
|
/>
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<div className="grid grid-cols-2 gap-4">
|
<div className="grid lg:grid-cols-2 gap-4">
|
||||||
<Suspense fallback={<LoadingBoard />}>
|
<Suspense fallback={<LoadingBoard />}>
|
||||||
<div>
|
<div className="mx-auto">
|
||||||
<PgnViewer
|
<PgnViewer
|
||||||
gamePgn={gameState.pgn || ""}
|
gamePgn={gameState.pgn || ""}
|
||||||
handlePlyChange={handlePlyChange}
|
handlePlyChange={handlePlyChange}
|
||||||
|
|||||||
Reference in New Issue
Block a user