Skip to content

Commit

Permalink
Fix large numbered lists cut off in spoiler tags (aeharding#1591)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Aug 21, 2024
1 parent cfacaeb commit f2d4444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/features/shared/markdown/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const markdownCss = css`
@media (max-width: 700px) {
ul,
ol {
padding-left: 24px;
padding-left: 28px;
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/features/shared/markdown/components/spoiler/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import store, { useAppDispatch } from "../../../../../store";
import { getSpoilerId, updateSpoilerState } from "./spoilerSlice";

const StyledIonAccordionGroup = styled(IonAccordionGroup)`
margin: 1em 0;
margin: 1em -12px;
`;

const HeaderItem = styled(IonItem)`
--padding-start: 0;
--padding-end: 0;
--padding-start: 12px;
--padding-end: 12px;
--inner-padding-end: 0;
--inner-padding-start: 0;
Expand All @@ -39,7 +39,7 @@ const StyledIonAccordion = styled(IonAccordion)`
background: none;
[slot="content"] {
padding: 1em 0;
padding: 1em 12px;
background: transparent;
Expand Down

0 comments on commit f2d4444

Please sign in to comment.