From e932493adf9330e9738ea30d1b03d0d224dd81d2 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Fri, 19 Apr 2024 12:14:19 +0800 Subject: [PATCH] fix(console): pagination bar should be fully visible --- .../TenantSettings/TenantMembers/EditMemberModal/index.tsx | 6 +++++- .../TenantMembers/InviteMemberModal/index.tsx | 5 ++++- .../pages/TenantSettings/TenantMembers/index.module.scss | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/console/src/pages/TenantSettings/TenantMembers/EditMemberModal/index.tsx b/packages/console/src/pages/TenantSettings/TenantMembers/EditMemberModal/index.tsx index ba2a0da265f..3aa0904ef3e 100644 --- a/packages/console/src/pages/TenantSettings/TenantMembers/EditMemberModal/index.tsx +++ b/packages/console/src/pages/TenantSettings/TenantMembers/EditMemberModal/index.tsx @@ -15,6 +15,8 @@ import { useConfirmModal } from '@/hooks/use-confirm-modal'; import useCurrentTenantScopes from '@/hooks/use-current-tenant-scopes'; import * as modalStyles from '@/scss/modal.module.scss'; +import * as styles from '../index.module.scss'; + type Props = { readonly user: TenantMemberResponse; readonly isOpen: boolean; @@ -43,7 +45,9 @@ function EditMemberModal({ user, isOpen, onClose }: Props) { if (role === TenantRole.Admin) { const [result] = await show({ ModalContent: () => ( - , li:
  • }}>{t('assign_admin_confirm')} + , li:
  • }}> + {t('assign_admin_confirm')} + ), confirmButtonText: 'general.confirm', }); diff --git a/packages/console/src/pages/TenantSettings/TenantMembers/InviteMemberModal/index.tsx b/packages/console/src/pages/TenantSettings/TenantMembers/InviteMemberModal/index.tsx index 716eaf5b41a..d0881a0d46d 100644 --- a/packages/console/src/pages/TenantSettings/TenantMembers/InviteMemberModal/index.tsx +++ b/packages/console/src/pages/TenantSettings/TenantMembers/InviteMemberModal/index.tsx @@ -15,6 +15,7 @@ import * as modalStyles from '@/scss/modal.module.scss'; import InviteEmailsInput from '../InviteEmailsInput'; import useEmailInputUtils from '../InviteEmailsInput/hooks'; +import * as styles from '../index.module.scss'; import { type InviteMemberForm } from '../types'; import Footer from './Footer'; @@ -66,7 +67,9 @@ function InviteMemberModal({ isOpen, onClose }: Props) { if (role === TenantRole.Admin) { const [result] = await show({ ModalContent: () => ( - , li:
  • }}>{t('assign_admin_confirm')} + , li:
  • }}> + {t('assign_admin_confirm')} + ), confirmButtonText: 'general.confirm', }); diff --git a/packages/console/src/pages/TenantSettings/TenantMembers/index.module.scss b/packages/console/src/pages/TenantSettings/TenantMembers/index.module.scss index bb444a0dd5d..6d66a8c1d3f 100644 --- a/packages/console/src/pages/TenantSettings/TenantMembers/index.module.scss +++ b/packages/console/src/pages/TenantSettings/TenantMembers/index.module.scss @@ -53,7 +53,7 @@ } } -ul { +.list { padding-inline-start: _.unit(6); > li {