mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 23:09:47 +00:00
qa fixes
This commit is contained in:
parent
f7d3734d9d
commit
a60f1d1ba0
@ -42,7 +42,8 @@ const MediaPreviewItem = styled.div`
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: calc(${sizes.small} / 2);
|
border-radius: calc(${sizes.small} / 2);
|
||||||
background-color: #fafafb;
|
background-color: #f3f3f4;
|
||||||
|
border: 1px solid #f3f3f4;
|
||||||
}
|
}
|
||||||
&.hoverable {
|
&.hoverable {
|
||||||
:hover {
|
:hover {
|
||||||
@ -59,20 +60,21 @@ const MediaPreviewFile = styled(MediaPreviewItem)`
|
|||||||
}
|
}
|
||||||
div {
|
div {
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #9fa7b6;
|
background-color: #f3f3f4;
|
||||||
color: white;
|
color: #333740;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: ${sizes.small};
|
line-height: ${sizes.small};
|
||||||
font-size: 11px;
|
|
||||||
span {
|
span {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
i {
|
i {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 1px;
|
||||||
top: 0;
|
top: -1px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -81,7 +83,7 @@ const MediaPreviewFile = styled(MediaPreviewItem)`
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
background: #9fa7b6;
|
background: #f3f3f4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -109,6 +111,7 @@ const MediaPreviewText = styled(MediaPreviewItem)`
|
|||||||
color: #333740;
|
color: #333740;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: ${sizes.small};
|
line-height: ${sizes.small};
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ function MediaPreviewList({ hoverable, files }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
MediaPreviewList.default = {
|
MediaPreviewList.defaultProps = {
|
||||||
hoverable: true,
|
hoverable: true,
|
||||||
files: null,
|
files: null,
|
||||||
};
|
};
|
||||||
|
@ -132,7 +132,7 @@ function ListView({
|
|||||||
Object.keys(getMetaDatas())
|
Object.keys(getMetaDatas())
|
||||||
.filter(
|
.filter(
|
||||||
key =>
|
key =>
|
||||||
!['json', 'group', 'relation', 'media', 'richtext'].includes(
|
!['json', 'group', 'relation', 'richtext'].includes(
|
||||||
get(layouts, [slug, 'schema', 'attributes', key, 'type'], '')
|
get(layouts, [slug, 'schema', 'attributes', key, 'type'], '')
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -214,7 +214,7 @@ function SettingViewModel({
|
|||||||
.filter(key => {
|
.filter(key => {
|
||||||
const type = get(attributes, [key, 'type'], '');
|
const type = get(attributes, [key, 'type'], '');
|
||||||
|
|
||||||
return !['json', 'relation', 'group', 'media'].includes(type) && !!type;
|
return !['json', 'relation', 'group'].includes(type) && !!type;
|
||||||
})
|
})
|
||||||
.filter(field => {
|
.filter(field => {
|
||||||
return !getListDisplayedFields().includes(field);
|
return !getListDisplayedFields().includes(field);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user