Explorar o código

fix: don't render library menu twice for mobile (#5636)

Aakansha Doshi %!s(int64=2) %!d(string=hai) anos
pai
achega
8b7302e89e
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/components/LayerUI.tsx

+ 3 - 3
src/components/LayerUI.tsx

@@ -478,11 +478,11 @@ const LayerUI = ({
               {t("buttons.scrollBackToContent")}
             </button>
           )}
+          {appState.isLibraryOpen && (
+            <div className="layer-ui__sidebar">{libraryMenu}</div>
+          )}
         </div>
       )}
-      {appState.isLibraryOpen && (
-        <div className="layer-ui__sidebar">{libraryMenu}</div>
-      )}
     </>
   );
 };