Fix layout when album comment is visible

This commit is contained in:
Deluan
2021-04-07 22:16:38 -04:00
parent 96a14ec484
commit f41bc31ba8
+7 -5
View File
@@ -200,11 +200,13 @@ const AlbumDetails = ({ record }) => {
<SizeField record={record} source="size" /> <SizeField record={record} source="size" />
</Typography> </Typography>
{config.enableStarRating && ( {config.enableStarRating && (
<RatingField <div>
record={record} <RatingField
resource={'album'} record={record}
size={isDesktop ? 'medium' : 'small'} resource={'album'}
/> size={isDesktop ? 'medium' : 'small'}
/>
</div>
)} )}
{isDesktop && record['comment'] && <AlbumComment record={record} />} {isDesktop && record['comment'] && <AlbumComment record={record} />}
</CardContent> </CardContent>