Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
wip: Show x more button
Richie McIlroyb4220e4199c2
diff --git a/apps/desktop-solid/src/entry-server.tsx b/apps/desktop-solid/src/entry-server.tsxindex e64ef6ca3..0974fc24e 100644--- a/apps/desktop-solid/src/entry-server.tsx+++ b/apps/desktop-solid/src/entry-server.tsx@@ -4,7 +4,7 @@ import { createHandler, StartServer } from "@solidjs/start/server";export default createHandler(() => (<StartServerdocument={({ assets, children, scripts }) => (- <html lang="en" class="overflow-hidden">+ <html lang="en" class="overflow-hidden h-full"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />@@ -12,7 +12,9 @@ export default createHandler(() => ({assets}</head><body class="w-full h-full select-none cursor-default">- <div id="app">{children}</div>+ <div id="app" class="h-full">+ {children}+ </div>{scripts}</body></html>diff --git a/apps/desktop-solid/src/routes/index.tsx b/apps/desktop-solid/src/routes/index.tsxindex a947f89c3..1c8c23e53 100644--- a/apps/desktop-solid/src/routes/index.tsx+++ b/apps/desktop-solid/src/routes/index.tsx@@ -30,7 +30,6 @@ export default function () {const camera = createCameraForLabel(() => options.data?.cameraLabel ?? "");- // temporaryconst [isRecording, setIsRecording] = createSignal(false);events.showCapturesPanel.listen(() => {@@ -50,7 +49,7 @@ export default function () {fallback={<div class="w-full h-full flex items-center justify-center bg-gray-100"><div class="p-[0.5rem] rounded-2xl border border-gray-200 bg-gray-50">- <IconCapLogo class="size-[4rem]" />+ <IconCapLogo class="size-[4rem] animate-spin" /></div></div>}diff --git a/apps/desktop-solid/src/routes/prev-recordings.tsx b/apps/desktop-solid/src/routes/prev-recordings.tsxindex 5c46f3d32..430c96f5f 100644--- a/apps/desktop-solid/src/routes/prev-recordings.tsx+++ b/apps/desktop-solid/src/routes/prev-recordings.tsx@@ -35,10 +35,14 @@ export default function () {recordings.refetch();});+ const [showAll, setShowAll] = createSignal(false);+ const visibleRecordings = () =>+ showAll() ? recordings.data : recordings.data?.slice(0, 5);+return (<div class="w-screen h-screen bg-transparent relative"><div class="absolute left-0 bottom-0 flex flex-col-reverse pl-[40px] pb-[80px] gap-4">- <For each={recordings.data}>+ <For each={visibleRecordings()}>{(recording, i) => {const [ref, setRef] = createSignal<HTMLElement | null>(null);@@ -278,6 +282,20 @@ export default function () {);}}</For>+ <Show when={recordings.data && recordings.data.length > 5}>+ <div class="w-full absolute bottom-[30px] left-[20px] flex justify-center z-30">+ <Button+ class="w-full max-w-[260px]"+ variant="secondary"+ size="md"+ onClick={() => setShowAll(!showAll())}+ >+ {showAll()+ ? "Show less"+ : `Show ${recordings.data!.length - 5} more`}+ </Button>+ </div>+ </Show></div></div>);diff --git a/packages/ui-solid/icons/logo.svg b/packages/ui-solid/icons/logo.svgindex bb882aed5..6ff67855d 100644--- a/packages/ui-solid/icons/logo.svg+++ b/packages/ui-solid/icons/logo.svg@@ -1,7 +1,7 @@-<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">-<g id="Wrapper">-<path id="Vector" d="M32 64C49.6731 64 64 49.6731 64 32C64 14.3269 49.6731 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z" fill="#4785FF"/>-<path id="Vector_2" d="M32.0001 58C46.3595 58 58 46.3595 58 32.0001C58 17.6405 46.3595 6 32.0001 6C17.6405 6 6 17.6408 6 32.0001C6 46.3595 17.6408 58 32.0001 58Z" fill="#ADC9FF"/>-<path id="Vector_3" d="M31.9999 52C43.0455 52 52 43.0455 52 31.9998C52 20.9542 43.0455 12 31.9999 12C20.9542 12 12 20.9542 12 31.9998C12 43.0455 20.9542 52 31.9999 52Z" fill="white"/>-</g>+<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="0.5" y="0.5" width="79" height="79" rx="15.5" fill="white"/>+<rect x="0.5" y="0.5" width="79" height="79" rx="15.5" stroke="#E7EAF0"/>+<path d="M40 72C57.6731 72 72 57.6731 72 40C72 22.3269 57.6731 8 40 8C22.3269 8 8 22.3269 8 40C8 57.6731 22.3269 72 40 72Z" fill="#4785FF"/>+<path d="M40.0001 66C54.3595 66 66 54.3595 66 40.0001C66 25.6405 54.3595 14 40.0001 14C25.6405 14 14 25.6408 14 40.0001C14 54.3595 25.6408 66 40.0001 66Z" fill="#ADC9FF"/>+<path d="M39.9999 60C51.0455 60 60 51.0455 60 39.9998C60 28.9542 51.0455 20 39.9999 20C28.9542 20 20 28.9542 20 39.9998C20 51.0455 28.9542 60 39.9999 60Z" fill="white"/></svg>