mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 19:50:37 +03:00
Show hotkeys as chips, for easier reading
This commit is contained in:
parent
8d6b5f9d02
commit
ed1ca65ad5
@ -1,6 +1,6 @@
|
||||
import React, { useCallback, useState } from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
import { Dialog } from '@material-ui/core'
|
||||
import { Chip, Dialog } from '@material-ui/core'
|
||||
import { getApplicationKeyMap, GlobalHotKeys } from 'react-hotkeys'
|
||||
import TableContainer from '@material-ui/core/TableContainer'
|
||||
import Paper from '@material-ui/core/Paper'
|
||||
@ -38,7 +38,11 @@ const HelpTable = (props) => {
|
||||
</TableCell>
|
||||
<TableCell align="left">
|
||||
{sequences.map(({ sequence }) => (
|
||||
<span key={sequence}>{sequence}</span>
|
||||
<Chip
|
||||
label={<kbd key={sequence}>{sequence}</kbd>}
|
||||
size="small"
|
||||
variant={'outlined'}
|
||||
/>
|
||||
))}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
Loading…
x
Reference in New Issue
Block a user