mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 22:54:31 +00:00
Merge branch 'features/media-lib' of github.com:strapi/strapi into ml/thumbnail-fix
This commit is contained in:
commit
6577c2ee6d
@ -29,7 +29,11 @@ const FileDetailsBox = ({ file }) => {
|
||||
key: 2,
|
||||
rows: [
|
||||
{ label: 'dimensions', value: file.width ? `${file.width}x${file.height}` : '-' },
|
||||
{ label: 'extension', value: file.ext ? file.ext.replace('.', '') : '-' },
|
||||
{
|
||||
label: 'extension',
|
||||
value: file.ext ? file.ext.replace('.', '') : '-',
|
||||
textTransform: 'uppercase',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
@ -40,7 +44,7 @@ const FileDetailsBox = ({ file }) => {
|
||||
if (type === 'spacer') {
|
||||
return (
|
||||
<Text as="section" key={key}>
|
||||
<Text> </Text>
|
||||
<Text lineHeight="18px"> </Text>
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
@ -50,10 +54,12 @@ const FileDetailsBox = ({ file }) => {
|
||||
{rows.map(rowItem => {
|
||||
return (
|
||||
<Text as="div" key={rowItem.label} style={{ width: '50%' }}>
|
||||
<Text color="grey" fontWeight="bold" textTransform="capitalize">
|
||||
<Text color="grey" fontWeight="bold" textTransform="capitalize" lineHeight="18px">
|
||||
{rowItem.label}
|
||||
</Text>
|
||||
<Text color="grey">{rowItem.value}</Text>
|
||||
<Text color="grey" textTransform={rowItem.textTransform || ''} lineHeight="18px">
|
||||
{rowItem.value}
|
||||
</Text>
|
||||
</Text>
|
||||
);
|
||||
})}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user