pydata / pydata-sphinx-theme

A clean, three-column Sphinx theme with Bootstrap for the PyData community
https://pydata-sphinx-theme.readthedocs.io
BSD 3-Clause "New" or "Revised" License
600 stars 313 forks source link

center figure and captions inside figwith, while the whole figure is left/right #1750

Closed berlin2123 closed 4 months ago

berlin2123 commented 6 months ago

center figure and captions inside figwith, while the whole figure is left/right

testing code: ( MyST md )

:::{figure} https://source.unsplash.com/200x200/daily?cute+puppy
:width: 60%
:align: left
:figwidth: 40%
Caption text text text text
:::

long long text ... 

:::{figure} https://source.unsplash.com/200x200/daily?cute+puppy
:width: 60%
:align: right
:figwidth: 40%
Caption text text text text text text text text text text text
:::

long long text ... 

old css:

ZIMAJMIJR7I806O{K{@%Z}C

new css:

FRUVMXE2N5XRFT3K _})YDL

trallard commented 4 months ago

@gabalafou, this PR has been approved and is waiting for the merge for a bit. I can go ahead an merge but would love a quick check on your end if possible?

github-actions[bot] commented 4 months ago

Coverage report

This PR does not seem to contain any modification to coverable code.