mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 18:53:23 +00:00
Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
e7938eedc2
commit
ec72b56f4f
@ -27,10 +27,9 @@ module.exports = {
|
||||
.default,
|
||||
'strapi-plugin-content-manager': require('../../../strapi-plugin-content-manager/admin/src')
|
||||
.default,
|
||||
// 'strapi-plugin-content-type-builder': require('../../../strapi-plugin-content-type-builder/admin/src')
|
||||
// .default,
|
||||
// 'strapi-plugin-documentation': require('../../../strapi-plugin-documentation/admin/src')
|
||||
// .default,
|
||||
'strapi-plugin-content-type-builder': require('../../../strapi-plugin-content-type-builder/admin/src')
|
||||
.default,
|
||||
'strapi-plugin-documentation': require('../../../strapi-plugin-documentation/admin/src').default,
|
||||
'strapi-plugin-email': require('../../../strapi-plugin-email/admin/src').default,
|
||||
'strapi-plugin-upload': require('../../../strapi-plugin-upload/admin/src').default,
|
||||
'strapi-plugin-graphql': require('../../../strapi-plugin-graphql/admin/src').default,
|
||||
|
@ -9,7 +9,6 @@ const CardImgWrapper = styled.div`
|
||||
${({ small }) => !small && 'margin-bottom: 7px'};
|
||||
border-radius: 2px;
|
||||
background-color: #f6f6f6;
|
||||
// overflow: hidden;
|
||||
|
||||
.card-control-wrapper {
|
||||
display: none;
|
||||
|
@ -24,6 +24,8 @@ const CardPreview = ({ hasError, url, type, withFileCaching }) => {
|
||||
{isFile ? (
|
||||
<FileIcon ext={getExtension(type)} />
|
||||
) : (
|
||||
// Adding performance.now forces the browser no to cache the img
|
||||
// https://stackoverflow.com/questions/126772/how-to-force-a-web-browser-not-to-cache-images
|
||||
<Image src={`${url}${withFileCaching ? `?${performance.now()}` : ''}`} />
|
||||
)}
|
||||
</Wrapper>
|
||||
|
Loading…
x
Reference in New Issue
Block a user