1
0
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:
Cotes Chung
2026-06-20 20:23:33 +08:00
parent 5cc9dc66ac
commit 18cf79bdac
4 changed files with 7 additions and 9 deletions
@@ -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' });
}