diff --git a/.gitignore b/.gitignore index 43588f1..a468692 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ node_modules +# Foreign lockfiles - this project uses pnpm (pnpm-lock.yaml is the only lockfile) +package-lock.json +yarn.lock +bun.lockb + # Output .output .vercel diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 21da4eb..967ee88 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -7,6 +7,7 @@ "core:default", "core:window:default", "core:window:allow-start-dragging", + "core:window:allow-start-resize-dragging", "core:window:allow-minimize", "core:window:allow-toggle-maximize", "core:window:allow-close", diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index bba3cd6..046fcc7 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -6075,6 +6075,12 @@ position: relative; } + /* Inset the scrollbar off the window's right edge so the window resize handle + (ResizeHandles in +layout) has clean space and doesn't swallow the scrollbar. */ + .editor-container:not(.mobile) .editor-body { + margin-right: 8px; + } + .editor-body::-webkit-scrollbar { width: 8px; } diff --git a/src/lib/components/ResizeHandles.svelte b/src/lib/components/ResizeHandles.svelte new file mode 100644 index 0000000..38a3242 --- /dev/null +++ b/src/lib/components/ResizeHandles.svelte @@ -0,0 +1,69 @@ + + +{#if appWindow && !maximized} +
+{/if} + + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index dff436a..ceeb6bd 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -4,6 +4,7 @@ import { theme, appConfig, activeNote, activeNotePath, installType, checkForUpdate, checkForUpdateMobile } from '$lib/stores/app'; import { openFile, openUrl, readNote, getInstallType } from '$lib/api'; import { get } from 'svelte/store'; + import ResizeHandles from '$lib/components/ResizeHandles.svelte'; let { children } = $props(); @@ -194,3 +195,5 @@ {@render children()} + +