fix : padding & packages versions

This commit is contained in:
GuillaumeSD
2025-04-08 20:25:26 +02:00
parent c4fd94860c
commit ef8e25c816
3 changed files with 368 additions and 309 deletions

654
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -23,7 +23,7 @@
"firebase": "^11.1.0",
"idb": "^8.0.1",
"jotai": "^2.11.0",
"next": "15.1.3",
"next": "15.2.4",
"react": "18.3.1",
"react-chessboard": "^4.7.2",
"react-dom": "18.3.1",

View File

@@ -65,16 +65,21 @@ export default function PanelToolBar() {
<NextMoveButton />
<GoToLastPositionButton />
<Tooltip title="Copy pgn">
<Grid>
<IconButton
disabled={game.history().length === 0}
onClick={() => {
navigator.clipboard.writeText(game.pgn());
}}
sx={{ paddingX: 1.2, paddingY: 0.5 }}
>
<Icon icon="ri:clipboard-line" height={30} />
<Icon icon="ri:clipboard-line" />
</IconButton>
</Grid>
</Tooltip>
<SaveButton />
</Grid>
);