Web:Client:Section: fix badges for row view

This commit is contained in:
TimofeyBoyko 2022-11-15 11:52:53 +03:00
parent 156b192c90
commit d87d87c6b3
2 changed files with 12 additions and 2 deletions

View File

@ -76,7 +76,7 @@ const SimpleFilesRowContent = styled(RowContent)`
.new-items {
min-width: 16px;
margin: 7px 22px 0 0;
margin: 7px 24px 0 0;
}
`}
`;

View File

@ -158,11 +158,20 @@ const StyledSimpleFilesRow = styled(Row)`
}
.badges {
margin-top: ${(props) => (props.isSmallContainer ? "0px" : "3px")};
margin-bottom: 0px;
${(props) =>
props.isSmallContainer &&
css`
.tablet-pinned {
margin-top: 2px;
}
`}
}
.badge {
margin-right: 24px;
margin-right: 8px;
}
.lock-file {
@ -281,6 +290,7 @@ const SimpleFilesRow = (props) => {
showHotkeyBorder={showHotkeyBorder}
isRoom={item.isRoom}
isDragOver={isDragOver}
isSmallContainer={isSmallContainer}
>
<FilesRowContent
item={item}