Просмотр исходного кода

fix: toolbar unnecessarily eats too much width (#2924)

David Luzar 4 лет назад
Родитель
Сommit
1e17c1967b
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 2
      src/components/MobileMenu.tsx
  2. 2 0
      src/css/styles.scss

+ 2 - 2
src/components/MobileMenu.tsx

@@ -46,7 +46,7 @@ export const MobileMenu = ({
   renderCustomFooter,
   viewModeEnabled,
 }: MobileMenuProps) => {
-  const renderFixedSideContainer = () => {
+  const renderToolbar = () => {
     return (
       <FixedSideContainer side="top" className="App-top-bar">
         <Section heading="shapes">
@@ -136,7 +136,7 @@ export const MobileMenu = ({
   };
   return (
     <>
-      {!viewModeEnabled && renderFixedSideContainer()}
+      {!viewModeEnabled && renderToolbar()}
       <div
         className="App-bottom-bar"
         style={{

+ 2 - 0
src/css/styles.scss

@@ -226,6 +226,8 @@
 
   .App-top-bar {
     z-index: var(--zIndex-layerUI);
+    display: flex;
+    justify-content: center;
   }
 
   .App-bottom-bar {