1
0

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

This commit is contained in:
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

View File

@ -9,6 +9,8 @@ const props = withDefaults(defineProps<{
actions: true,
})
const userSettings = useUserSettings()
const status = $computed(() => {
if (props.status.reblog && props.status.reblog)
return props.status.reblog
@ -60,7 +62,7 @@ const isDM = $computed(() => status.visibility === 'direct')
</div>
</div>
<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>
</template>