1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-28 06:48:36 +09:00

fix: ヘッダーにアクションボタンがあるときヘッダー左側に余白がなくなる問題

This commit is contained in:
NoriDev 2023-05-29 19:15:43 +09:00
parent ccbd315f53
commit 512b48e5a0

View File

@ -8,6 +8,7 @@
<MkAvatar :class="$style.avatar" :user="$i"/>
</div>
<div v-else-if="!thin_ && narrow && !hideTitle && canBack" :class="$style.buttonsLeft"/>
<div v-else-if="!thin_ && canBack && (actions && actions.length > 0)" :class="$style.buttonsLeft"/>
<template v-if="metadata">
<div v-if="!hideTitle" :class="[$style.titleContainer, { [$style.titleContainer_canBack]: !canBack }]" @click="top">
@ -48,7 +49,7 @@ import { globalEvents } from '@/events';
import { injectPageMetadata } from '@/scripts/page-metadata';
import { $i, openAccountMenu as openAccountMenu_ } from '@/account';
import { miLocalStorage } from '@/local-storage';
import { mainRouter } from "@/router";
import { mainRouter } from '@/router';
const isFriendly = ref(miLocalStorage.getItem('ui') === 'friendly');
const canBack = ref(mainRouter.currentRoute.value.name === 'index' || mainRouter.currentRoute.value.name === 'explore' || mainRouter.currentRoute.value.name === 'my-notifications' || mainRouter.currentRoute.value.name === 'messaging');