Update Daily Puzzles table buttons to match Song Library style
This commit is contained in:
@@ -964,35 +964,22 @@ export default function AdminPage() {
|
|||||||
<td style={{ padding: '0.75rem', fontWeight: 'bold' }}>{puzzle.song.title}</td>
|
<td style={{ padding: '0.75rem', fontWeight: 'bold' }}>{puzzle.song.title}</td>
|
||||||
<td style={{ padding: '0.75rem' }}>{puzzle.song.artist}</td>
|
<td style={{ padding: '0.75rem' }}>{puzzle.song.artist}</td>
|
||||||
<td style={{ padding: '0.75rem', textAlign: 'center' }}>
|
<td style={{ padding: '0.75rem', textAlign: 'center' }}>
|
||||||
<button
|
<div style={{ display: 'flex', gap: '0.5rem', justifyContent: 'center' }}>
|
||||||
onClick={() => handlePlayPuzzle(puzzle)}
|
<button
|
||||||
style={{
|
onClick={() => handlePlayPuzzle(puzzle)}
|
||||||
padding: '0.5rem 1rem',
|
style={{ fontSize: '1.25rem', cursor: 'pointer', border: 'none', background: 'none' }}
|
||||||
marginRight: '0.5rem',
|
title={playingPuzzleId === puzzle.id ? "Pause" : "Play"}
|
||||||
background: playingPuzzleId === puzzle.id ? '#ef4444' : '#3b82f6',
|
>
|
||||||
color: 'white',
|
{playingPuzzleId === puzzle.id ? '⏸️' : '▶️'}
|
||||||
border: 'none',
|
</button>
|
||||||
borderRadius: '0.25rem',
|
<button
|
||||||
cursor: 'pointer',
|
onClick={() => handleDeletePuzzle(puzzle.id)}
|
||||||
fontSize: '0.875rem'
|
style={{ fontSize: '1.25rem', cursor: 'pointer', border: 'none', background: 'none' }}
|
||||||
}}
|
title="Delete"
|
||||||
>
|
>
|
||||||
{playingPuzzleId === puzzle.id ? '⏸ Pause' : '▶ Play'}
|
🗑️
|
||||||
</button>
|
</button>
|
||||||
<button
|
</div>
|
||||||
onClick={() => handleDeletePuzzle(puzzle.id)}
|
|
||||||
style={{
|
|
||||||
padding: '0.5rem 1rem',
|
|
||||||
background: '#ef4444',
|
|
||||||
color: 'white',
|
|
||||||
border: 'none',
|
|
||||||
borderRadius: '0.25rem',
|
|
||||||
cursor: 'pointer',
|
|
||||||
fontSize: '0.875rem'
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
🗑️ Delete
|
|
||||||
</button>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user