(fix) カラーモードがautoのときにトップページの画像がライトモード用に固定される

fix #91
This commit is contained in:
kakkokari-gtyih 2023-12-30 13:18:59 +09:00
parent 6f6205ddc8
commit ce84e471b8
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ const { locale, fallbackLocale } = useI18n();
const localePath = useGLocalePath(); const localePath = useGLocalePath();
const showTagline = ref(false); const showTagline = ref(false);
const colorMode = useColorMode(); const colorMode = useColorMode();
const mobileScreenShot = computed(() => (colorMode.preference === 'dark') ? '/img/hero/misskey-mobile-dark.png' : '/img/hero/misskey-mobile-light.png'); const mobileScreenShot = computed(() => (colorMode.value === 'dark') ? '/img/hero/misskey-mobile-dark.png' : '/img/hero/misskey-mobile-light.png');
// //
const localeState = useState('miHub_blog_originalLocale', () => locale.value); const localeState = useState('miHub_blog_originalLocale', () => locale.value);

View File

@ -11,7 +11,7 @@
<script setup> <script setup>
const colorMode = useColorMode(); const colorMode = useColorMode();
const screenshots = computed(() => { const screenshots = computed(() => {
if (colorMode.preference === 'dark') { if (colorMode.value === 'dark') {
return { return {
desktop: '/img/hero/misskey-dark.png', desktop: '/img/hero/misskey-dark.png',
mobile: '/img/hero/misskey-mobile-dark.png', mobile: '/img/hero/misskey-mobile-dark.png',