Client: fixed row view for indexing

This commit is contained in:
Dmitry Sychugov 2024-05-30 15:24:04 +05:00
parent 49d9c7c3d9
commit b7517458df
3 changed files with 7 additions and 19 deletions

View File

@ -59,6 +59,7 @@ import FilesFilter from "@docspace/shared/api/files/filter";
import { DropDownItem } from "@docspace/shared/components/drop-down-item";
import { tablet, mobile, Consumer, getLogoUrl } from "@docspace/shared/utils";
import { isMobile } from "react-device-detect";
import { toastr } from "@docspace/shared/components/toast";
import { TableGroupMenu } from "@docspace/shared/components/table";
@ -951,9 +952,10 @@ const SectionHeaderContent = (props) => {
<Consumer key="header">
{(context) => (
<StyledContainer isRecycleBinFolder={isRecycleBinFolder}>
{isMobile && isIndexEditingMode && <TableIndexHeader {...tableIndexHeaderProps} />}
{tableGroupMenuVisible ? (
<TableGroupMenu {...tableGroupMenuProps} withComboBox />
) : isIndexEditingMode ? (
) : isIndexEditingMode && !isMobile ? (
<TableIndexHeader {...tableIndexHeaderProps} />
) : (
<div className="header-container">

View File

@ -57,6 +57,8 @@ const StyledTableIndexMenu = styled.div`
height: 60px;
}
@media ${mobile} {
top: 0px;
position: fixed;
height: 48px;
padding: 0px 18px;
}

View File

@ -216,25 +216,9 @@ const Row = (props: RowProps) => {
{renderContentElement && (
<StyledContentElement>{contentElement}</StyledContentElement>
)}
{isIndexEditingMode ? (
<>
<ColorTheme
themeId={ThemeId.IndexIconButton}
iconName={ArrowReactSvgUrl}
className="index-up-icon"
size="small"
// onClick={onClickShare}
/>
<ColorTheme
themeId={ThemeId.IndexIconButton}
iconName={ArrowReactSvgUrl}
className="index-down-icon"
size="small"
// onClick={onClickShare}
/>
</>
) : (
{!isIndexEditingMode && (
<>
{" "}
{renderContext ? (
<ContextMenuButton
isFill