fix: hide actions panel in status detail when use zen mode (#1065)

zio/stable
sechi 2023-01-14 18:47:15 +08:00 committed by GitHub
parent 72e2650702
commit 1cbaf68ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ const props = withDefaults(defineProps<{
actions: true, actions: true,
}) })
const userSettings = useUserSettings()
const status = $computed(() => { const status = $computed(() => {
if (props.status.reblog && props.status.reblog) if (props.status.reblog && props.status.reblog)
return props.status.reblog return props.status.reblog
@ -60,7 +62,7 @@ const isDM = $computed(() => status.visibility === 'direct')
</div> </div>
</div> </div>
<div border="t base" pt-2> <div border="t base" pt-2>
<StatusActions v-if="actions" :status="status" details :command="command" /> <StatusActions v-if="actions" v-show="!userSettings.zenMode" :status="status" details :command="command" />
</div> </div>
</div> </div>
</template> </template>