Revert "fix(frontend/mobile): モバイルでkawaiiモードが適用されない問題を修正 (MisskeyIO#878)"
Some checks failed
API report (misskey.js) / report (pull_request) Successful in 2m37s
Check Misskey JS version / Check version (pull_request) Successful in 52s
Lint / pnpm_install (pull_request) Successful in 2m35s
Test (backend) / unit (22.x) (pull_request) Successful in 7m48s
Test (backend) / e2e (22.x) (pull_request) Failing after 8m39s
Test (frontend) / vitest (22.x) (pull_request) Successful in 2m42s
Test (misskey.js) / test (22.x) (pull_request) Successful in 2m26s
Test (production install and build) / production (22.x) (pull_request) Successful in 2m46s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 3m4s
Lint / lint (backend) (pull_request) Successful in 2m55s
Lint / lint (frontend) (pull_request) Successful in 9m23s
Lint / lint (misskey-js) (pull_request) Successful in 2m10s
Lint / lint (sw) (pull_request) Successful in 2m26s
Lint / typecheck (backend) (pull_request) Successful in 3m7s
Lint / typecheck (misskey-js) (pull_request) Successful in 2m14s

This reverts commit 8bd7884873.
This commit is contained in:
sugar 2025-01-17 16:40:25 +01:00
parent 2ac89cd654
commit d35b2dd0bc

View file

@ -8,8 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div :class="$style.top">
<div :class="$style.banner" :style="{ backgroundImage: `url(${ instance.bannerUrl })` }"></div>
<button class="_button" :class="$style.instance" @click="openInstanceMenu">
<img v-if="kawaiiMode" src="/client-assets/kawaii/misskey-io.png" alt="" :class="$style.instanceIconAlt"/>
<img v-else :src="instance.iconUrl || instance.faviconUrl || '/favicon.ico'" alt="" :class="$style.instanceIcon"/>
<img :src="instance.iconUrl || instance.faviconUrl || '/favicon.ico'" alt="" :class="$style.instanceIcon"/>
</button>
</div>
<div :class="$style.middle">
@ -58,9 +57,7 @@ import { $i, openAccountMenu as openAccountMenu_ } from '@/account.js';
import { defaultStore } from '@/store.js';
import { i18n } from '@/i18n.js';
import { instance } from '@/instance.js';
import { miLocalStorage } from '@/local-storage.js';
const kawaiiMode = miLocalStorage.getItem('kawaii') === 'true';
const menu = toRef(defaultStore.state, 'menu');
const otherMenuItemIndicated = computed(() => {
for (const def in navbarItemDef) {
@ -123,11 +120,6 @@ function more() {
aspect-ratio: 1;
}
.instanceIconAlt {
display: inline-block;
width: 85%;
}
.bottom {
position: sticky;
bottom: 0;