mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-17 20:42:25 +03:00
Album size overflow fixed (#1071)
* Added back button * Added back button * Added back button * Fixed Album size overflow * Fixed Album size overflow * Fixed album size overflowing * Fixed album size overflowing * Fixed album size overflowing * Fixed album size overflow on small screen * Changes reverted in PlayerEdit.js * prettier formatting issue resolved Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
6ac2fefaf3
commit
06b1a1a25c
@ -2,10 +2,18 @@ import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { formatBytes } from '../utils'
|
||||
import { useRecordContext } from 'react-admin'
|
||||
import { makeStyles } from '@material-ui/core'
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
display: 'inline-block',
|
||||
},
|
||||
}))
|
||||
|
||||
export const SizeField = ({ source, ...rest }) => {
|
||||
const classes = useStyles()
|
||||
const record = useRecordContext(rest)
|
||||
return <span>{formatBytes(record[source])}</span>
|
||||
return <span className={classes.root}>{formatBytes(record[source])}</span>
|
||||
}
|
||||
|
||||
SizeField.propTypes = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user