@@ -9,14 +9,14 @@ interface Props {
9
9
game : PlayedGame
10
10
whitePlayer : string
11
11
blackPlayer : string
12
- maiaVersion : string
12
+ event : string
13
13
}
14
14
15
15
export const ExportGame : React . FC < Props > = ( {
16
16
game,
17
17
whitePlayer,
18
18
blackPlayer,
19
- maiaVersion ,
19
+ event ,
20
20
} ) => {
21
21
const [ fen , setFen ] = useState ( '' )
22
22
const [ pgn , setPgn ] = useState ( '' )
@@ -35,7 +35,7 @@ export const ExportGame: React.FC<Props> = ({
35
35
useEffect ( ( ) => {
36
36
const initial = new Chess ( game . moves [ 0 ] . board )
37
37
initial . addHeader ( 'ID' , game . id )
38
- initial . addHeader ( 'Event' , `Play v. ${ maiaVersion } ` )
38
+ initial . addHeader ( 'Event' , event )
39
39
initial . addHeader ( 'Site' , `https://maiachess.com/` )
40
40
initial . addHeader ( 'White' , whitePlayer )
41
41
initial . addHeader ( 'Black' , blackPlayer )
@@ -80,7 +80,7 @@ export const ExportGame: React.FC<Props> = ({
80
80
role = "button"
81
81
tabIndex = { 0 }
82
82
onClick = { ( ) => copy ( fen ) }
83
- className = "border-1 group flex cursor-pointer overflow-x-hidden rounded border border-white/5 bg-background-1/50 px-4 py-2"
83
+ className = "border-1 group flex cursor-pointer overflow-x-hidden rounded border border-white/5 bg-background-1/50 px-3 py-2"
84
84
>
85
85
< p className = "whitespace-nowrap text-xs text-secondary group-hover:text-secondary/80" >
86
86
{ fen }
@@ -105,7 +105,7 @@ export const ExportGame: React.FC<Props> = ({
105
105
role = "button"
106
106
tabIndex = { 0 }
107
107
onClick = { ( ) => copy ( pgn ) }
108
- className = "border-1 group flex cursor-pointer overflow-x-hidden rounded border border-white/5 bg-background-1/50 px-4 py-2 "
108
+ className = "border-1 group flex max-h-32 cursor-pointer overflow-x-hidden overflow-y-scroll rounded border border-white/5 bg-background-1/50 p-3 "
109
109
>
110
110
< p className = "whitespace-pre-wrap text-xs text-secondary group-hover:text-secondary/80" >
111
111
{ pgn }
0 commit comments