Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions Tekst-Web/src/components/content/TextAnnotationContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -637,24 +637,7 @@ function generatePlaintextAnno(): string {
}"
@after-leave="() => (tokenDetails = undefined)"
>
<n-alert
v-if="tokenDetails?.comment"
type="default"
:title="$t('common.comment')"
class="mb-lg"
>
<template #icon>
<n-icon :component="CommentIcon" size="medium" />
</template>
<div
class="text-small"
:style="{ fontFamily: resource.contentFont, whiteSpace: 'pre-line' }"
>
{{ tokenDetails.comment }}
</div>
</n-alert>

<!-- ANNOTATIONS TABLES -->
<!-- ANNOTATIONS TABLE -->
<n-table :bordered="false" :bottom-bordered="false" size="small">
<template
v-for="(group, index) in tokenDetails?.annotations"
Expand All @@ -680,6 +663,24 @@ function generatePlaintextAnno(): string {
</template>
</n-table>

<!-- TOKEN COMMENT -->
<n-alert
v-if="tokenDetails?.comment"
type="default"
:title="$t('common.comment')"
class="mt-lg"
>
<template #icon>
<n-icon :component="CommentIcon" size="medium" />
</template>
<div
class="text-small"
:style="{ fontFamily: resource.contentFont, whiteSpace: 'pre-line' }"
>
{{ tokenDetails.comment }}
</div>
</n-alert>

<div v-if="tokenDetails?.id" class="mt-lg text-mini translucent" style="text-align: center">
<b>ID:</b> {{ tokenDetails.id }}
</div>
Expand Down