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:
Salman Inayat 2021-09-09 20:56:48 +05:00 committed by GitHub
parent 6ac2fefaf3
commit 06b1a1a25c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -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 = {