Skip to content

Commit

Permalink
fix(gallery): 🐛 misalign gallery caption
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Feb 26, 2024
1 parent c13fd3e commit c9f6ec6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions skinStyles/mediawiki/mediawiki.page.gallery.styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ div.gallerytext {
ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper,
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper,
ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper {
right: 0;
margin: 0;
width: auto !important;
font-weight: var( --font-weight-normal ); // should use the same weight as caption
background: var( --background-color-overlay );
}
Expand Down Expand Up @@ -60,5 +63,7 @@ ul.gallery.mw-gallery-slideshow {
background-color: var( --color-surface-2 );
border-color: transparent;
border-radius: var( --border-radius--small );
max-width: 100%;
margin: 0;
}
}

0 comments on commit c9f6ec6

Please sign in to comment.