diff --git a/frontend/src/components/dirent-detail/embedded-file-details/index.js b/frontend/src/components/dirent-detail/embedded-file-details/index.js index fe22c4dfb9..ecac2f5655 100644 --- a/frontend/src/components/dirent-detail/embedded-file-details/index.js +++ b/frontend/src/components/dirent-detail/embedded-file-details/index.js @@ -21,11 +21,6 @@ const EmbeddedFileDetails = ({ repoID, repoInfo, dirent, path, onClose, width = return urlParams.has('view'); }, []); - const isTag = useMemo(() => { - const urlParams = new URLSearchParams(window.location.search); - return urlParams.has('tag'); - }, []); - useEffect(() => { const fullPath = path.split('/').pop() === dirent?.name ? path : Utils.joinPath(path, dirent?.name || ''); seafileAPI.getFileInfo(repoID, fullPath).then(res => { @@ -37,7 +32,7 @@ const EmbeddedFileDetails = ({ repoID, repoInfo, dirent, path, onClose, width = }, [repoID, path, dirent]); useEffect(() => { - if (isView || isTag) return; + if (isView) return; let isExistContext = true; if (!window.sfMetadataContext) { diff --git a/frontend/src/metadata/components/detail-editor/tags-editor/index.js b/frontend/src/metadata/components/detail-editor/tags-editor/index.js index f6991d55e3..54a17b71ed 100644 --- a/frontend/src/metadata/components/detail-editor/tags-editor/index.js +++ b/frontend/src/metadata/components/detail-editor/tags-editor/index.js @@ -73,7 +73,7 @@ const TagsEditor = ({ record, value, field, updateFileTags }) => { if (!showEditor) return null; const { width, bottom } = ref.current.getBoundingClientRect(); const viewportHeight = window.innerHeight; - const shouldPlaceBottom = (viewportHeight - bottom) > 300; + const shouldPlaceBottom = (viewportHeight - bottom) > 400; return ( { fade={false} className="sf-metadata-property-editor-popover sf-metadata-tags-property-editor-popover" boundariesElement="viewport" - popperModifiers={{ - preventOverflow: { - enabled: true, - padding: 8 - }, - offset: { - offset: '0, 8', - } - }} >