mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-06-21 23:38:39 +00:00
refactor(ui): reduce the size of the 'close' and 'copy' buttons
- The close button in the TOC popup - The copy button in the code block
This commit is contained in:
@@ -62,6 +62,7 @@ export class TocMobile {
|
||||
static showPopup() {
|
||||
this.lockScroll(true);
|
||||
$popup.showModal();
|
||||
$btnClose.blur();
|
||||
const activeItem = $popup.querySelector('li.is-active-li');
|
||||
activeItem.scrollIntoView({ block: 'center' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user