Skip to content

Commit

Permalink
Remove negative margin
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF authored Mar 30, 2024
1 parent 7551c2e commit 327eff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CollapseSections.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mw.hook('wikipage.content').add(function(content) {
content.find('.mw-parser-output :header:has(*)').each(function() {
var level = +this.nodeName[1],
heading = $(this),
icon = $('<i class="mw-ui-icon-before mw-ui-icon-small mw-ui-icon mw-ui-icon-collapse" style="margin-left:-0.8em;"></i>');
icon = $('<i class="mw-ui-icon-before mw-ui-icon-small mw-ui-icon mw-ui-icon-collapse"></i>');

icon.click(function() {
var levelMatch = 'h1';
Expand All @@ -31,4 +31,4 @@ mw.hook('wikipage.content').add(function(content) {
});

mw.loader.load(['mediawiki.ui.icon', 'oojs-ui.styles.icons-movement']);
mw.util.addCSS('[class*="hide-sec"]{display:none!important}');
mw.util.addCSS('[class*="hide-sec"]{display:none!important}');

0 comments on commit 327eff1

Please sign in to comment.