Web: Files: fixed file-name click

This commit is contained in:
Nikita Gopienko 2023-04-07 12:37:20 +03:00
parent 2586e03ecf
commit 6267d15e41
3 changed files with 39 additions and 26 deletions

View File

@ -2,7 +2,7 @@ import React, { useCallback } from "react";
import { inject, observer } from "mobx-react";
import { withRouter } from "react-router";
import { withTranslation } from "react-i18next";
import styled from "styled-components";
import styled, { css } from "styled-components";
import { isMobile, isTablet, isMobileOnly } from "react-device-detect";
import moment from "moment";
@ -50,36 +50,41 @@ const SimpleFilesRowContent = styled(RowContent)`
${(props) =>
((props.sectionWidth <= 1024 && props.sectionWidth > 500) || isTablet) &&
`
.row-main-container-wrapper {
display: flex;
justify-content: space-between;
max-width: inherit;
}
css`
.row-main-container-wrapper {
display: flex;
justify-content: space-between;
max-width: inherit;
}
.badges {
flex-direction: row-reverse;
}
.badges {
flex-direction: row-reverse;
}
.tablet-badge {
margin-top: 5px;
}
.tablet-badge {
margin-top: 5px;
}
.tablet-edit,
.can-convert {
margin-top: 6px;
margin-right: 24px !important;
}
.tablet-edit,
.can-convert {
margin-top: 6px;
margin-right: 24px !important;
}
.badge-version {
margin-right: 22px;
}
.badge-version {
margin-right: 22px;
}
.new-items {
min-width: 16px;
margin: 5px 24px 0 0;
}
`}
.new-items {
min-width: 16px;
margin: 5px 24px 0 0;
}
`}
.row-content-link {
padding: 12px 12px 0px 0px;
margin-top: -12px;
}
`;
SimpleFilesRowContent.defaultProps = { theme: Base };

View File

@ -149,6 +149,10 @@ const StyledTableRow = styled(TableRow)`
}
}
.item-file-name {
padding: 12px 12px 12px 0px;
}
${(props) =>
props.showHotkeyBorder &&
css`

View File

@ -54,6 +54,10 @@ const SimpleFilesTileContent = styled(TileContent)`
}
}
.item-file-name {
padding: 12px 12px 12px 0px;
}
${({ isRooms }) =>
isRooms &&
css`