fix: hide duplicated status actions items on details page in zen mode (#2731)

This commit is contained in:
TAKAHASHI Shuuji 2024-04-01 14:25:53 +09:00 committed by GitHub
parent eee671cdc3
commit d8d9975756
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ function showFavoritedAndBoostedBy() {
<template #popper> <template #popper>
<div flex="~ col"> <div flex="~ col">
<template v-if="getPreferences(userSettings, 'zenMode')"> <template v-if="getPreferences(userSettings, 'zenMode') && !details">
<CommonDropdownItem <CommonDropdownItem
:text="$t('action.reply')" :text="$t('action.reply')"
icon="i-ri:chat-1-line" icon="i-ri:chat-1-line"

View file

@ -31,7 +31,7 @@ useHydratedHead({
<template> <template>
<div :id="`status-${status.id}`" flex flex-col gap-2 pt2 pb1 ps-3 pe-4 relative :lang="status.language ?? undefined" aria-roledescription="status-details"> <div :id="`status-${status.id}`" flex flex-col gap-2 pt2 pb1 ps-3 pe-4 relative :lang="status.language ?? undefined" aria-roledescription="status-details">
<StatusActionsMore :status="status" absolute inset-ie-2 top-2 @after-edit="$emit('refetchStatus')" /> <StatusActionsMore :status="status" :details="true" absolute inset-ie-2 top-2 @after-edit="$emit('refetchStatus')" />
<NuxtLink :to="getAccountRoute(status.account)" rounded-full hover:bg-active transition-100 pe5 me-a> <NuxtLink :to="getAccountRoute(status.account)" rounded-full hover:bg-active transition-100 pe5 me-a>
<AccountHoverWrapper :account="status.account"> <AccountHoverWrapper :account="status.account">
<AccountInfo :account="status.account" /> <AccountInfo :account="status.account" />