Browse Source

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

Aakansha Doshi 2 years ago
parent
commit
8b7302e89e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/components/LayerUI.tsx

+ 3 - 3
src/components/LayerUI.tsx

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