Annotation styles

This commit is contained in:
Simon Martens
2026-01-10 19:08:20 +01:00
parent 21f07f0e7f
commit 69c525f192
13 changed files with 98 additions and 16 deletions

View File

@@ -176,7 +176,7 @@
{{- if $model.result.Entry.Annotation -}}
<div class="entryrow">
<div class="fieldlabel">Anmerkungen</div>
<div class="fieldvalue">
<div class="fieldvalue annotation-content">
{{- Safe (ReplaceSlashParen $model.result.Entry.Annotation) -}}
</div>
</div>

View File

@@ -65,9 +65,10 @@
<!-- Link dialog (required for link functionality) -->
<div class="trix-dialogs" data-trix-dialogs>
<div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">
<div class="trix-dialog__link-fields">
<input type="url" name="href" class="trix-input trix-input--dialog" placeholder="Enter a URL…" aria-label="URL" required data-trix-input>
<div class="trix-button-group">
<div class="trix-dialog__link-fields flex flex-row">
<input type="url" name="href" class="trix-input trix-input--dialog"
placeholder="URL eingeben…" aria-label="URL" required data-trix-input>
<div class="trix-button-group flex-row">
<input type="button" class="trix-button trix-button--dialog" value="Link" data-trix-method="setAttribute">
<input type="button" class="trix-button trix-button--dialog" value="Unlink" data-trix-method="removeAttribute">
</div>

View File

@@ -47,7 +47,7 @@
</span>
{{ if $r.Annotation }}
<span>&ensp;&middot;&ensp;</span>
<span class="{{ if $marka }}reihen-text{{ end }}">{{ Safe $r.Annotation }}</span>
<span class="{{ if $marka }}reihen-text{{ end }} annotation-content">{{ Safe $r.Annotation }}</span>
{{ end }}
</div>
{{ template "_reiherelations" (Arr $r $bds $entries false $request) }}

View File

@@ -123,13 +123,13 @@
</div>
<textarea name="pseudonyms" id="pseudonyms" class="inputinput" autocomplete="off" rows="1">{{- $place.Pseudonyms -}}</textarea>
</div>
{{ template "_annotation_field" (Arr $place.Annotation "Annotation") }}
<div class="inputwrapper">
<div class="inputlabelrow">
<label for="uri" class="inputlabel">URI</label>
<label for="uri" class="inputlabel">URL</label>
</div>
<input name="uri" id="uri" class="inputinput" autocomplete="off" value="{{ $place.URI }}" />
</div>
{{ template "_annotation_field" (Arr $place.Annotation "Annotation") }}
<div class="inputwrapper">
<div class="px-3 py-2 flex flex-row gap-2 font-bold">
<input type="checkbox" name="fictional" id="fictional" {{ if $place.Fictional }}checked{{ end }} data-boolean-checkbox />

View File

@@ -121,7 +121,7 @@
<span class="font-bold">{{ $r.Title }}</span>
</div>
{{ if $r.Annotation }}
<div class="max-w-[48rem]">
<div class="max-w-[48rem] annotation-content">
<span class="">{{ Safe $r.Annotation }}</span>
</div>
{{ end }}

View File

@@ -63,7 +63,7 @@
</div>
{{ if $r.Annotation }}
<div class="max-w-[48rem] mt-1">
<div class="max-w-[48rem] mt-1 annotation-content">
<span class="">{{ Safe $r.Annotation }}</span>
</div>
{{ end }}

View File

@@ -43,6 +43,11 @@
<i class="ri-map-pin-line"></i>
<span class="filtercategory">Erscheinungsort</span> &middot;
<span class="filterterm">{{ $model.result.Place.Name }}</span>
{{- if (IsAdminOrEditor $model.request.user) -}}
<a href="/ort/{{ $model.result.Place.Id }}/edit" class="no-underline rounded bg-stone-100 px-1.5">
<i class="ri-edit-line"></i>
</a>
{{- end -}}
</div>
{{ end }}

View File

@@ -186,7 +186,7 @@
</div>
{{- end -}}
{{- if $entry.Annotation -}}
<div class="text-base hyphens-auto">
<div class="text-base hyphens-auto annotation-content">
<b>Anm.: </b
><span class="{{- if $isAnnotations -}}search-text{{- end -}}"
>{{- Safe