mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
refactor: Update MessageCard.vue to conditionally render VCardTitle component based on message properties
This commit is contained in:
@@ -57,11 +57,14 @@ function replaceNewLine(value: string) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="props.message?.title"
|
v-if="props.message?.title && !props.message?.image"
|
||||||
class="rounded-md text-body-1 py-2 px-4 elevation-2 bg-primary text-white chat-right mb-1"
|
class="rounded-md text-body-1 py-2 px-4 elevation-2 bg-primary text-white chat-right mb-1"
|
||||||
>
|
>
|
||||||
<p class="mb-0">{{ props.message?.title }}</p>
|
<p class="mb-0">{{ props.message?.title }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<VCardTitle v-if="props.message?.title && props.message?.image">
|
||||||
|
{{ props.message?.title }}
|
||||||
|
</VCardTitle>
|
||||||
<div
|
<div
|
||||||
v-if="props.message?.text && props.message?.action === 0"
|
v-if="props.message?.text && props.message?.action === 0"
|
||||||
class="rounded-md text-body-1 py-2 px-4 elevation-2 bg-primary text-white chat-right mb-1"
|
class="rounded-md text-body-1 py-2 px-4 elevation-2 bg-primary text-white chat-right mb-1"
|
||||||
|
|||||||
Reference in New Issue
Block a user