Merge pull request #888 from ONLYOFFICE/bugfix/fixed-hotkeys-border

Web: Files: fixed hotkeys border
This commit is contained in:
Nikita Gopienko 2022-10-05 17:48:08 +03:00 committed by GitHub
commit 7208db2872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ const StyledRowContainer = styled(RowContainer)`
.files-row {
border-top: ${(props) =>
`1px ${props.theme.filesSection.tableView.row.borderColor} solid`};
margin-top: -3px;
margin-top: -1px;
${marginStyles}
}
}
@ -94,7 +94,7 @@ const FilesRowContainer = ({
hasMoreFiles={hasMoreFiles}
draggable
useReactWindow={!withPaging}
itemHeight={58}
itemHeight={59}
>
{filesList.map((item, index) => (
<SimpleFilesRow

View File

@ -39,7 +39,7 @@ const StyledWrapper = styled.div`
const StyledSimpleFilesRow = styled(Row)`
${(props) => (props.checked || props.isActive) && checkedStyle};
${(props) => props.dragging && draggingStyle}
height: 57px;
height: 56px;
${(props) =>
!isMobile &&
@ -49,7 +49,7 @@ const StyledSimpleFilesRow = styled(Row)`
cursor: pointer;
${checkedStyle}
margin-top: -3px;
margin-top: -1px;
border-top: ${(props) =>
`1px ${props.theme.filesSection.tableView.row.borderColor} solid`};
}
@ -67,13 +67,13 @@ const StyledSimpleFilesRow = styled(Row)`
/* cursor: wait; */
`}
margin-top: -2px;
margin-top: 0px;
${(props) =>
props.showHotkeyBorder &&
css`
border-top: 1px solid #2da7db !important;
margin-top: -3px;
margin-top: -1px;
margin-left: -24px;
margin-right: -24px;
padding-left: 24px;