Skip to content

Commit

Permalink
fix appearance of the policy list
Browse files Browse the repository at this point in the history
  • Loading branch information
RusJaI committed Dec 18, 2024
1 parent da24076 commit cd50816
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ const TabPanelShared: FC<TabPanelSharedProps> = (props) => {
</Typography>
</AccordionSummary>
<AccordionDetails>
<Box py={1} px={3} width='100%' alignItems='center'>
<Box py={1} px={3} sx={{
maxWidth: "90%", // Set a maximum width for the accordion
margin: "0 auto", // Center the accordion horizontally
}} alignItems='center'>
{props.selectedTab === props.index && (
<>
{(props.commonPolicyList && props.commonPolicyList.length > 0) ? (
Expand Down Expand Up @@ -127,7 +130,10 @@ const TabPanelShared: FC<TabPanelSharedProps> = (props) => {
</Typography>
</AccordionSummary>
<AccordionDetails>
<Box py={1} px={3} width='100%' alignItems='center'>
<Box py={1} px={3} sx={{
maxWidth: "90%", // Set a maximum width for the accordion
margin: "0 auto", // Center the accordion horizontally
}} alignItems='center'>
{props.selectedTab === props.index && (
<>
{(props.apiPolicyList && props.apiPolicyList.length > 0) ? (
Expand Down

0 comments on commit cd50816

Please sign in to comment.