-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use pointer when clickable status (#113)
- Loading branch information
1 parent
4bb2910
commit 175e312
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,24 @@ | ||
<script setup lang="ts"> | ||
import type { Status } from 'masto' | ||
const { status } = defineProps<{ | ||
const { status, withAction = true } = defineProps<{ | ||
status: Status | ||
withAction?: boolean | ||
}>() | ||
const { translation } = useTranslation(status) | ||
</script> | ||
|
||
<template> | ||
<div class="status-body" whitespace-pre-wrap break-words> | ||
<div class="status-body" whitespace-pre-wrap break-words :class="{ 'with-action': withAction }"> | ||
<ContentRich | ||
:content="translation.visible ? translation.text : status.content" | ||
:emojis="status.emojis" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.status-body.with-action p { | ||
cursor: pointer; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters