fix(frontend): normalize paraglide imports and improve accessibility

Changed OcrTrigger and ScriptTypeSelect from 'import * as m' to
'import { m }' to match the rest of the codebase. Increased
ScriptTypeSelect label to text-sm and annotation badge font to 12px
for better readability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-13 12:29:00 +02:00
parent 8c07779a91
commit b7fd4018c2
3 changed files with 4 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ let shapeStyle = $derived(
border-radius: 50%;
background-color: {annotation.color};
color: white;
font-size: 11px;
font-size: 12px;
font-family: sans-serif;
font-weight: 700;
display: flex;

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { untrack } from 'svelte';
import * as m from '$lib/paraglide/messages.js';
import { m } from '$lib/paraglide/messages.js';
import { getConfirmService } from '$lib/services/confirm.svelte';
import ScriptTypeSelect from './ScriptTypeSelect.svelte';

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import * as m from '$lib/paraglide/messages.js';
import { m } from '$lib/paraglide/messages.js';
interface Props {
value: string;
@@ -10,7 +10,7 @@ let { value = $bindable(), disabled = false }: Props = $props();
</script>
<div>
<label for="script-type-select" class="text-xs font-bold tracking-widest text-gray-400 uppercase">
<label for="script-type-select" class="text-sm font-bold tracking-widest text-gray-400 uppercase">
{m.ocr_trigger_label()}
</label>
<select