Update UI.
This commit is contained in:
parent
83cba54bf5
commit
7c683d9d6f
|
@ -3,7 +3,6 @@
|
||||||
import type { Note } from '$lib/stores/notes';
|
import type { Note } from '$lib/stores/notes';
|
||||||
import { notes, tags, themeUpperCase } from '$lib/stores';
|
import { notes, tags, themeUpperCase } from '$lib/stores';
|
||||||
import NoteColorPicker from './note-color-picker.svelte';
|
import NoteColorPicker from './note-color-picker.svelte';
|
||||||
import NoteTimestamp from './note-timestamp.svelte';
|
|
||||||
import NoteContent from './note-content.svelte';
|
import NoteContent from './note-content.svelte';
|
||||||
import NoteDeleteButton from './note-delete-button.svelte';
|
import NoteDeleteButton from './note-delete-button.svelte';
|
||||||
import NoteEditButton from './note-edit-button.svelte';
|
import NoteEditButton from './note-edit-button.svelte';
|
||||||
|
@ -39,7 +38,6 @@
|
||||||
{/if}
|
{/if}
|
||||||
<NoteDeleteButton {note} {noteEditorStore} />
|
<NoteDeleteButton {note} {noteEditorStore} />
|
||||||
<div class="note-card__spacer" />
|
<div class="note-card__spacer" />
|
||||||
<NoteTimestamp {note} />
|
|
||||||
<NoteColorPicker {note} {noteEditorStore} />
|
<NoteColorPicker {note} {noteEditorStore} />
|
||||||
<NoteTagButton on:click={focusTags} />
|
<NoteTagButton on:click={focusTags} />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
import FaTrash from '$icon/fa-trash.svelte';
|
import FaTrash from '$icon/fa-trash.svelte';
|
||||||
import Button from '../button.svelte';
|
import Button from '../button.svelte';
|
||||||
import { notes } from '$lib/stores';
|
import { notes } from '$lib/stores';
|
||||||
|
import NoteTimestamp from './note-timestamp.svelte';
|
||||||
import type { Note } from '$lib/stores/notes';
|
import type { Note } from '$lib/stores/notes';
|
||||||
import FaCircleXmark from '$icon/fa-circle-xmark.svelte';
|
import FaCircleXmark from '$icon/fa-circle-xmark.svelte';
|
||||||
import FaCircleCheck from '$icon/fa-circle-check.svelte';
|
import FaCircleCheck from '$icon/fa-circle-check.svelte';
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
<Button plain icon label="Delete note" on:click={() => expand('delete')}>
|
<Button plain icon label="Delete note" on:click={() => expand('delete')}>
|
||||||
<FaTrash />
|
<FaTrash />
|
||||||
</Button>
|
</Button>
|
||||||
|
<NoteTimestamp {note} />
|
||||||
{:else}
|
{:else}
|
||||||
<div class="note-delete-confirmation">
|
<div class="note-delete-confirmation">
|
||||||
<span>Delete?</span>
|
<span>Delete?</span>
|
||||||
|
|
Loading…
Reference in New Issue