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

Disable modifiers and set alignRight to false

https://youtrack.weseek.co.jp/issue/GW-7947
- Disable modifiers props (temporary)
- Set  alignRight to false in PageItemControl
Mudana-Grune 3 лет назад
Родитель
Сommit
33a882ae0d

+ 1 - 1
apps/app/src/components/Common/Dropdown/PageItemControl.tsx

@@ -248,7 +248,7 @@ const PageItemControlDropdownMenu = React.memo((props: DropdownMenuProps): JSX.E
   return (
     <DropdownMenu
       data-testid="page-item-control-menu"
-      modifiers={{ preventOverflow: { boundariesElement: 'viewport' } }}
+      // modifiers={{ preventOverflow: { boundariesElement: 'viewport' } }}
       right={alignRight}
       container="body"
       style={{ zIndex: 1055 }} /* make it larger than $zindex-modal of bootstrap */

+ 1 - 1
apps/app/src/components/Navbar/SubNavButtons.tsx

@@ -255,7 +255,7 @@ const SubNavButtonsSubstance = (props: SubNavButtonsSubstanceProps): JSX.Element
       ) }
       { showPageControlDropdown && (
         <PageItemControl
-          alignRight
+          alignRight={false}
           pageId={pageId}
           pageInfo={pageInfo}
           isEnableActions={!isGuestUser}