Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Tekst-API/tekst/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ResourceBase(ModelBase, ModelFactoryMixin):
citation: Annotated[
ConStrOrNone(
max_length=4096,
cleanup="oneline",
cleanup="multiline",
),
Field(
description="Citation details for this resource",
Expand Down
2 changes: 1 addition & 1 deletion Tekst-Web/src/components/resource/ResourceInfoContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const showInfoModal = ref(false);
<icon-heading level="3" :icon="FormatQuoteIcon">
{{ $t('browse.contents.widgets.infoWidget.citeAs') }}
</icon-heading>
<div :style="{ fontFamily: resource.contentFont }" class="text-medium">
<div :style="{ fontFamily: resource.contentFont }" class="text-medium pre-wrap">
{{ resource.citation }}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ const metadataKeysOptions = computed(() =>
<form-section :title="$t('models.resource.citation')">
<n-form-item path="citation" :show-label="false">
<n-input
type="textarea"
maxlength="4096"
show-count
v-model:value="model.citation"
:placeholder="$t('models.resource.citation')"
@keydown.enter.prevent
@keydown.enter.stop
/>
</n-form-item>
</form-section>
Expand Down