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

View File

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

View File

@ -216,25 +216,9 @@ const Row = (props: RowProps) => {
{renderContentElement && ( {renderContentElement && (
<StyledContentElement>{contentElement}</StyledContentElement> <StyledContentElement>{contentElement}</StyledContentElement>
)} )}
{isIndexEditingMode ? ( {!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}
/>
</>
) : (
<> <>
{" "}
{renderContext ? ( {renderContext ? (
<ContextMenuButton <ContextMenuButton
isFill isFill