diff --git a/package-lock.json b/package-lock.json index 3ed1deb..3887342 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "lodash.throttle": "^4.1.1", "mode-watcher": "^0.4.1", "print-js": "^1.6.0", + "screenfull": "^6.0.2", "short-uuid": "^5.2.0", "svelte-input-auto-width": "^2.1.0", "svelte-radix": "^1.1.1", @@ -4283,8 +4284,7 @@ "version": "5.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/svelte/-/svelte-5.0.4.tgz", "integrity": "sha512-BV9NplVgLmSi4mwKzD8BD/NQ8erOY/nUE/GpgWe2ckx+wIQF5RyRirn/QsSSCPeulVpc3RA/iJt6DpfTIZps0Q==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/@types/eslint": { "version": "9.6.1", @@ -13836,6 +13836,17 @@ "rimraf": "^2.5.2" } }, + "node_modules/screenfull": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/screenfull/-/screenfull-6.0.2.tgz", + "integrity": "sha512-AQdy8s4WhNvUZ6P8F6PB21tSPIYKniic+Ogx0AacBMjKP1GUHN2E9URxQHtCusiwxudnCKkdy4GrHXPPJSkCCw==", + "engines": { + "node": "^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/semantic-release": { "version": "24.1.1", "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-24.1.1.tgz", diff --git a/package.json b/package.json index ef2a960..de2d736 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "lodash.throttle": "^4.1.1", "mode-watcher": "^0.4.1", "print-js": "^1.6.0", + "screenfull": "^6.0.2", "short-uuid": "^5.2.0", "svelte-input-auto-width": "^2.1.0", "svelte-radix": "^1.1.1", diff --git a/src/App.svelte b/src/App.svelte index 511dc31..0e1e269 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -14,8 +14,10 @@ - - +
+ + +
diff --git a/src/lib/components/Editors.svelte b/src/lib/components/Editors.svelte index b9e313b..788cf1e 100644 --- a/src/lib/components/Editors.svelte +++ b/src/lib/components/Editors.svelte @@ -38,15 +38,17 @@ * and on PCs when multiple editors are open. */ $: tabsMode = $editors.length > 1; - $: tabsClass = tabsMode ? 'h-[calc(100%-96px)] w-full' : 'h-[calc(100%-60px)] w-full'; - + {#if tabsMode || isXS}
- + {#each $editors as editor} @@ -68,10 +70,11 @@ {/if} - +