Skip to content

Commit d6d7dff

Browse files
Improve padding of ExpandableList component. (#23702)
Co-authored-by: Maksym Yadlovskyi <[email protected]>
1 parent d2778f0 commit d6d7dff

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

graylog2-web-interface/src/components/common/ExpandableListItem.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const StyledAccordionItem = styled(Accordion.Item)(
5555
5656
.mantine-Accordion-content {
5757
padding-left: 11px;
58+
padding-right: 0;
5859
}
5960
6061
.mantine-Accordion-label {
@@ -64,6 +65,10 @@ const StyledAccordionItem = styled(Accordion.Item)(
6465
`,
6566
);
6667

68+
const StyledAccordionControl = styled(Accordion.Control)`
69+
padding-right: 0;
70+
`;
71+
6772
type Props = React.PropsWithChildren<{
6873
header: React.ReactNode;
6974
value: string;
@@ -90,10 +95,10 @@ const ExpandableListItem = ({
9095

9196
return (
9297
<StyledAccordionItem value={value}>
93-
<Accordion.Control>
98+
<StyledAccordionControl>
9499
{header}
95100
{subheader && <Subheader>{subheader}</Subheader>}
96-
</Accordion.Control>
101+
</StyledAccordionControl>
97102
<Accordion.Panel>
98103
<ContentContainer>{children}</ContentContainer>
99104
</Accordion.Panel>

0 commit comments

Comments
 (0)