Revert "fix(frontend/mobile): モバイルでkawaiiモードが適用されない問題を修正 (MisskeyIO#878)"
All checks were successful
API report (misskey.js) / report (pull_request) Successful in 2m44s
Lint / pnpm_install (pull_request) Successful in 2m35s
Test (frontend) / vitest (22.x) (pull_request) Successful in 3m29s
Test (misskey.js) / test (22.x) (pull_request) Successful in 2m28s
Test (production install and build) / production (22.x) (pull_request) Successful in 3m19s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 3m13s
Lint / lint (backend) (pull_request) Successful in 2m54s
Lint / lint (frontend) (pull_request) Successful in 9m38s
Lint / lint (misskey-js) (pull_request) Successful in 2m19s
Lint / lint (sw) (pull_request) Successful in 2m22s
Lint / typecheck (backend) (pull_request) Successful in 3m2s
Lint / typecheck (misskey-js) (pull_request) Successful in 2m30s
Test (backend) / unit (22.x) (pull_request) Successful in 7m13s
Test (backend) / e2e (22.x) (pull_request) Successful in 9m16s

This change was about kawaii mode, which doesn't exist in Forkey.

This reverts commit 8bd7884873.
This commit is contained in:
sugar 2025-01-12 00:33:38 +01:00
parent fedc06d7d0
commit 0de5cbc887

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;