last review apply

This commit is contained in:
Virginie Ky 2019-09-13 16:04:15 +02:00
parent c21f9272f6
commit 4f9065f19e
3 changed files with 5 additions and 2 deletions

View File

@ -57,7 +57,7 @@ function TableHeader({ headers, isBulkable }) {
} }
}} }}
> >
<span> <span className={header.sortable ? 'sortable' : ''}>
{header.label} {header.label}
{sortBy === header.name && ( {sortBy === header.name && (
<Icon <Icon

View File

@ -32,9 +32,11 @@ const Thead = styled.thead`
vertical-align: middle !important; vertical-align: middle !important;
> span { > span {
position: relative; position: relative;
&.sortable {
cursor: pointer; cursor: pointer;
} }
} }
}
${({ isBulkable }) => { ${({ isBulkable }) => {
if (isBulkable) { if (isBulkable) {
return css` return css`

View File

@ -145,6 +145,7 @@ const MediaPreviewImage = styled(MediaPreviewItem)`
border-radius: calc(${sizes.big} / 2); border-radius: calc(${sizes.big} / 2);
margin-top: calc(-${sizes.big} - ${sizes.small} - 5px); margin-top: calc(-${sizes.big} - ${sizes.small} - 5px);
margin-left: calc((-${sizes.big} + ${sizes.small}) / 2); margin-left: calc((-${sizes.big} + ${sizes.small}) / 2);
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.05);
} }
&.hoverable { &.hoverable {