浏览代码

Update LayerUI.tsx

zsviczian 2 年之前
父节点
当前提交
c246ccf9d9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/LayerUI.tsx

+ 2 - 1
src/components/LayerUI.tsx

@@ -411,7 +411,8 @@ const LayerUI = ({
                 onClick={onCollabButtonClick}
               />
             )}
-            {renderTopRightUI?.(device.isMobile, appState)}
+            {!appState.viewModeEnabled &&
+              renderTopRightUI?.(device.isMobile, appState)}
             {!appState.viewModeEnabled && (
               <LibraryButton appState={appState} setAppState={setAppState} />
             )}