style(frontend): apply ultracite 7.12 formatting and lint rules
This commit is contained in:
1 parent
fc4758aa0b
commit
c8e5cff871
109 files changed
+845
-817
No files matched your search
@@ -41,15 +41,15 @@
|
||||
}}
|
||||
>
|
||||
<textarea
|
||||
bind:value={text}
|
||||
rows={oncancel ? 2 : 3}
|
||||
placeholder="Заметка к сообщению…"
|
||||
rows={oncancel ? 2 : 3}
|
||||
bind:value={text}
|
||||
></textarea>
|
||||
<div class="actions">
|
||||
{#if oncancel}
|
||||
<Button variant="translucent" onclick={oncancel}>Отмена</Button>
|
||||
<Button onclick={oncancel} variant="translucent">Отмена</Button>
|
||||
{/if}
|
||||
<Button type="submit" disabled={saving || !valid}>{submitLabel}</Button>
|
||||
<Button disabled={saving || !valid} type="submit">{submitLabel}</Button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
{#if editingId === annotation.id}
|
||||
<AnnotationEditor
|
||||
initial={annotation.text}
|
||||
submitLabel="Сохранить"
|
||||
oncancel={() => {
|
||||
editingId = null;
|
||||
}}
|
||||
@@ -29,26 +28,27 @@
|
||||
onupdate(annotation, text);
|
||||
editingId = null;
|
||||
}}
|
||||
submitLabel="Сохранить"
|
||||
/>
|
||||
{:else}
|
||||
<p class="text">{annotation.text}</p>
|
||||
<div class="meta">
|
||||
<span class="time">{formatFull(annotation.updated_at)}</span>
|
||||
<button
|
||||
type="button"
|
||||
class="action"
|
||||
aria-label="Изменить"
|
||||
class="action"
|
||||
onclick={() => {
|
||||
editingId = annotation.id;
|
||||
}}
|
||||
type="button"
|
||||
>
|
||||
<Icon name="edit" size="1rem" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="action"
|
||||
aria-label="Удалить"
|
||||
class="action"
|
||||
onclick={() => ondelete(annotation)}
|
||||
type="button"
|
||||
>
|
||||
<Icon name="delete" size="1rem" />
|
||||
</button>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
return;
|
||||
}
|
||||
untrack(() => {
|
||||
token++;
|
||||
token += 1;
|
||||
const current = token;
|
||||
loading = true;
|
||||
items = [];
|
||||
@@ -75,10 +75,10 @@
|
||||
</script>
|
||||
|
||||
{#if chatId === null || messageId === null}
|
||||
<EmptyState title="Заметки" description="Сообщение не выбрано" />
|
||||
<EmptyState description="Сообщение не выбрано" title="Заметки" />
|
||||
{:else}
|
||||
<div class="panel-content">
|
||||
<AnnotationEditor {saving} onsubmit={add} />
|
||||
<AnnotationEditor onsubmit={add} {saving} />
|
||||
|
||||
{#if loading && items.length === 0}
|
||||
<div class="center"><Spinner /></div>
|
||||
|
||||
Reference in new issue
Block a user