Skip to content

fix: List under admonition indentation - #5249

Merged
carlagn merged 6 commits into
mainfrom
fix/admonition-list-indentation
Sep 12, 2023
Merged

fix: List under admonition indentation#5249
carlagn merged 6 commits into
mainfrom
fix/admonition-list-indentation

Conversation

@carlagn

@carlagn carlagn commented Aug 31, 2023

Copy link
Copy Markdown
Contributor

Describe this PR

Lists inside Admonition components do not get the same margins as a regular list on the body.

Changes

Added margin-left, margin-top, and margin-bottom to lists rendered under the Admonition component.

What issue does this fix?

Fixes #4891

Any other relevant information

N/a

@vercel

vercel Bot commented Aug 31, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2023 11:37am

@carlagn
carlagn requested review from meletj and nilubava August 31, 2023 13:17
@github-actions

github-actions Bot commented Aug 31, 2023

Copy link
Copy Markdown
Contributor

This PR changes the following pages (Vercel Preview Deploy links):

Changed Vercel links

(Note that links will only be valid after Vercel preview deploy succeeded)

@github-actions

Copy link
Copy Markdown
Contributor

This PR probably requires the following redirects to be added to vercel.json:

  • This PR does not change any pages in a way that would require a redirect.

@janpio

janpio commented Aug 31, 2023

Copy link
Copy Markdown
Contributor

If the bullet goes over two lines, the indentation is still off:
image
image
(From e.g. /concepts/components/prisma-schema/relations/referential-actions)

@nilubava

nilubava commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

@janpio @meletj Can you review again?

@carlagn
carlagn merged commit 82a346b into main Sep 12, 2023
@carlagn
carlagn deleted the fix/admonition-list-indentation branch September 12, 2023 13:58
carlagn pushed a commit that referenced this pull request Sep 15, 2023
* Add margins to lists under admonition components

* Update individual list item's margin-top

* Update admonition to list on wrapper

* Update theme import for admonition file

* Update admonition indentation of relations page

* Update indentation of lists under admonition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatting of lists within admonitions

4 participants