Fix margins in footer

Vector 2022 increased paragraph bottom margin to 1em.
Reset this to 0.5em.

Also don't append an empty links list.

Change-Id: I18b17824cc1093dbf61b354309144be8d9d74643
This commit is contained in:
Ed Sanders 2024-09-26 17:15:46 +01:00
parent a1bc55aa56
commit 293cd13018
2 changed files with 8 additions and 2 deletions

View file

@ -204,9 +204,11 @@ function ReplyWidget( commentController, commentDetails, config ) {
this.$footer.append(
$( '<p>' ).addClass( 'plainlinks' ).html(
this.isNewTopic ? licenseMessages.newtopic : licenseMessages.reply
),
$footerLinks
)
);
if ( $footerLinks.children().length ) {
this.$footer.append( $footerLinks );
}
this.$actionsWrapper.append( this.$footer, this.$actions );
this.viewportScrollContainer = OO.ui.Element.static.getClosestScrollableContainer( document.body );

View file

@ -223,6 +223,10 @@
font-size: 0.75em;
color: @color-subtle;
> p {
margin-bottom: 0.5em;
}
> * {
&:first-child {
margin-top: 0;