소스 검색

change tooltip placement by innerWidth

Futa Arai 1 년 전
부모
커밋
f5b1323636
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/app/src/client/components/Navbar/GrowiContextualSubNavigation.tsx

+ 1 - 1
apps/app/src/client/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -160,7 +160,7 @@ const PageOperationMenuItems = (props: PageOperationMenuItemsProps): JSX.Element
             </DropdownItem>
           </span>
           <Tooltip
-            placement="left"
+            placement={window.innerWidth < 800 ? 'bottom' : 'left'}
             isOpen={!isUploadEnabled && isBulkExportTooltipOpen}
             // Tooltip cannot be activated when target is disabled so set the target to wrapper span
             target="bulkExportDropdownItem"