Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Keating committed Jul 19, 2023
1 parent bb8acc4 commit 371b929
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
17 changes: 9 additions & 8 deletions src/lib/NoteList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
const handleDeleteNote = async (note) => {
await note.remove();
selectedNote.set({});
omniText.set('');
$omniText = '';
$omniMode = 'search';
$bodyText = '';
};
const handleSelectNote = (note) => {
Expand All @@ -57,8 +59,8 @@
.exec()
.then((n) => {
omniMode.set('edit');
omniText.set(n.name);
bodyText.set(n.body);
omniText.set(n?.name);
bodyText.set(n?.body);
});
};
</script>
Expand Down Expand Up @@ -96,7 +98,7 @@
<span class="meta" style={$selectedNote === note && 'background: #2252a0; color: white;'}>
{formatDate(note.updatedAt)}
<!-- <button on:click={() => handleDeleteNote(note)}>[del]</button> -->
<button on:click={() => handleDeleteNote(note)} class="bg-transparent">[del]</button>
</span>
</li>
{/each}
Expand All @@ -105,14 +107,13 @@
<style>
ul {
margin: 0;
margin: 0 6px 3px 6px;
padding: 0;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
background-color: var(--app-omni-background);
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-radius: 8px;
box-sizing: border-box;
}
li {
display: flex;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/ResizeHandle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

<div
on:mousedown={startResize.bind(this, 'left')}
class="w-full resize-bar select-none row-resize h-[10px]"
style="background: var(--app-notedetail-background) * 20%;"
class="w-full resize-bar select-none row-resize"
style="background: var(--app-resizer-background); height: 15px;"
role="button"
tabindex="-1"
/>
2 changes: 1 addition & 1 deletion src/lib/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
};
</script>

<div class="text-white h-full" style="margin-bottom: 100px; padding: 0px 15px; margin: 0;">
<div class="text-white h-full" style="margin-bottom: 100px; padding: 5px 15px; margin: 0;">
<span class="font-bold">nvAux Settings</span>
<div class="relative">
{#await db().notes.find().exec()}
Expand Down
1 change: 1 addition & 0 deletions src/lib/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ body {
--app-notedetail-background: #1c1f21;
--app-notelist-odd-background: #222426;
--app-notelist-even-background: #2c2e31;
--app-resizer-background: #181a1c;
}

body {
Expand Down

0 comments on commit 371b929

Please sign in to comment.