From 99f80919d6a5546425c8b7418c4e874f8c99e69a Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 22 Sep 2024 19:12:28 +0800 Subject: feat: add padding for plus/minus button --- src/Layout.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Layout.mjs') diff --git a/src/Layout.mjs b/src/Layout.mjs index 8a9f316..789027b 100644 --- a/src/Layout.mjs +++ b/src/Layout.mjs @@ -161,11 +161,11 @@ export class Overlay extends Layout { // Plus/Minus font-size of content wrapper.querySelector('#plus-font-size').onclick = () => { const fontSize = parseFloat(getComputedStyle(block).fontSize) / 16 - block.style.fontSize = `${fontSize + 0.1}rem` + block.style.fontSize = `${fontSize + 0.2}rem` } wrapper.querySelector('#minus-font-size').onclick = () => { const fontSize = parseFloat(getComputedStyle(block).fontSize) / 16 - block.style.fontSize = `${fontSize - 0.1}rem` + block.style.fontSize = `${fontSize - 0.2}rem` } }) } -- cgit v1.2.3-70-g09d2