fix ui issue for bot roles edit and display (#21283)

This commit is contained in:
Shrushti Polekar 2025-05-19 19:13:41 +05:30 committed by GitHub
parent eb371bca12
commit 2cf8d9e8e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 2 deletions

View File

@ -25,7 +25,7 @@ const InheritedRolesCard = ({ userData }: InheritedRolesCardProps) => {
return ( return (
<Card <Card
className="new-header-border-card" className="bot-page-roles-card-header"
key="inherited-roles-card-component" key="inherited-roles-card-component"
title={t('label.inherited-role-plural')}> title={t('label.inherited-role-plural')}>
<Fragment> <Fragment>

View File

@ -82,7 +82,7 @@ const RolesCard = ({
if (isAdminUser) { if (isAdminUser) {
return ( return (
<Card <Card
className="new-header-border-card" className="bot-page-roles-card-header"
extra={ extra={
!isRolesEdit && ( !isRolesEdit && (
<EditIconButton <EditIconButton

View File

@ -127,3 +127,18 @@
border: 1px solid @grey-15; border: 1px solid @grey-15;
} }
.bot-page-roles-card-header {
.ant-card-head {
background: @grey-50;
border-radius: @border-radius-sm;
.text-sm();
font-weight: 500;
border-bottom: none;
}
.ant-card-body {
height: auto !important;
max-height: none !important;
}
}