mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-04-16 23:08:38 +02:00
Fix private content tags
This commit is contained in:
@@ -8,6 +8,7 @@ import { draggable, dropTargetForElements } from '@atlaskit/pragmatic-drag-and-d
|
|||||||
import FitText from '@app/components/shared/FitText';
|
import FitText from '@app/components/shared/FitText';
|
||||||
import { getFileColorWithOpacity } from '@app/components/pageEditor/fileColors';
|
import { getFileColorWithOpacity } from '@app/components/pageEditor/fileColors';
|
||||||
import { useFilesModalContext } from '@app/contexts/FilesModalContext';
|
import { useFilesModalContext } from '@app/contexts/FilesModalContext';
|
||||||
|
import { PrivateContent } from '@app/components/shared/PrivateContent';
|
||||||
|
|
||||||
import { FileId } from '@app/types/file';
|
import { FileId } from '@app/types/file';
|
||||||
|
|
||||||
@@ -222,10 +223,12 @@ const FileMenuItem: React.FC<FileMenuItemProps> = ({
|
|||||||
size="sm"
|
size="sm"
|
||||||
/>
|
/>
|
||||||
<div style={{ flex: 1, textAlign: 'left', minWidth: 0 }}>
|
<div style={{ flex: 1, textAlign: 'left', minWidth: 0 }}>
|
||||||
<FitText className="ph-no-capture" text={itemName} fontSize={14} minimumFontScale={0.7} />
|
<PrivateContent>
|
||||||
|
<FitText text={itemName} fontSize={14} minimumFontScale={0.7} />
|
||||||
|
</PrivateContent>
|
||||||
</div>
|
</div>
|
||||||
{file.versionNumber && file.versionNumber > 1 && (
|
{file.versionNumber && file.versionNumber > 1 && (
|
||||||
<Text size="xs" c="dimmed" className="ph-no-capture">
|
<Text size="xs" c="dimmed">
|
||||||
v{file.versionNumber}
|
v{file.versionNumber}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import { PageEditorFileDropdown } from '@app/components/shared/PageEditorFileDro
|
|||||||
import type { CustomWorkbenchViewInstance } from '@app/contexts/ToolWorkflowContext';
|
import type { CustomWorkbenchViewInstance } from '@app/contexts/ToolWorkflowContext';
|
||||||
import { FileDropdownMenu } from '@app/components/shared/FileDropdownMenu';
|
import { FileDropdownMenu } from '@app/components/shared/FileDropdownMenu';
|
||||||
import { usePageEditorDropdownState, PageEditorDropdownState } from '@app/components/pageEditor/hooks/usePageEditorDropdownState';
|
import { usePageEditorDropdownState, PageEditorDropdownState } from '@app/components/pageEditor/hooks/usePageEditorDropdownState';
|
||||||
import { PrivateContent } from '@app/components/shared/PrivateContent';
|
|
||||||
|
|
||||||
|
|
||||||
const viewOptionStyle: React.CSSProperties = {
|
const viewOptionStyle: React.CSSProperties = {
|
||||||
|
|||||||
Reference in New Issue
Block a user