Client: fixed row view for indexing
This commit is contained in:
parent
49d9c7c3d9
commit
b7517458df
@ -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">
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user