From 93fc2456b36d79a7d5ac755de818081bce1e7cfe Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 30 Mar 2025 08:59:18 +0900 Subject: [PATCH] refactor(frontend): refactor base styles --- packages/frontend/src/style.scss | 22 ++++++++++++++++------ packages/frontend/src/ui/deck.vue | 20 -------------------- packages/frontend/src/ui/universal.vue | 24 ------------------------ 3 files changed, 16 insertions(+), 50 deletions(-) diff --git a/packages/frontend/src/style.scss b/packages/frontend/src/style.scss index 17080e5fbc..de3c2621fd 100644 --- a/packages/frontend/src/style.scss +++ b/packages/frontend/src/style.scss @@ -28,9 +28,6 @@ } html { - background-color: var(--MI_THEME-bg); - color: var(--MI_THEME-fg); - accent-color: var(--MI_THEME-accent); overflow: auto; overflow-wrap: break-word; font-family: 'Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; @@ -39,6 +36,11 @@ html { text-size-adjust: 100%; tab-size: 2; -webkit-text-size-adjust: 100%; + touch-action: manipulation; + scroll-behavior: smooth; + background-color: var(--MI_THEME-bg); + color: var(--MI_THEME-fg); + accent-color: var(--MI_THEME-accent); &, * { scrollbar-color: var(--MI_THEME-scrollbarHandle) transparent; @@ -94,11 +96,19 @@ html._themeChanging_ { } } -html, body { - touch-action: manipulation; +html, +body, +#misskey_app { margin: 0; padding: 0; - scroll-behavior: smooth; + width: 100%; + height: 100%; + overscroll-behavior: none; +} + +body { + /* NOTE: htmlにも overflow: clip を設定したいところだが、設定すると何故か少なくともChromeで html が main thread scrolling になりパフォーマンスが(多分)落ちる */ + overflow: clip; } a { diff --git a/packages/frontend/src/ui/deck.vue b/packages/frontend/src/ui/deck.vue index c458bd02e4..3f3bc32fad 100644 --- a/packages/frontend/src/ui/deck.vue +++ b/packages/frontend/src/ui/deck.vue @@ -221,26 +221,6 @@ async function deleteProfile() { - - -