Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(desktop): refresh experimental settings page

Richie McIlroy3dc9fbf89c77
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
index 4f83f70ed..6be63e552 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
@@ -49,50 +49,58 @@ function Inner(props: {
return (
<div class="flex flex-col h-full custom-scroll">
- <div class="p-4 space-y-4">
- <div class="flex flex-col pb-4 border-b border-gray-2">
- <h2 class="text-lg font-medium text-gray-12">
- Experimental Features
+ <div class="px-6 py-6 space-y-7 max-w-[42rem]">
+ <div class="flex flex-col gap-1 px-1">
+ <h2 class="text-base font-semibold tracking-tight text-gray-12">
+ Experimental
</h2>
- <p class="text-sm text-gray-10">
- These features are still in development and may not work as
- expected.
+ <p class="text-xs leading-relaxed text-gray-10">
+ In-development features that may not work as expected.
</p>
</div>
+
<Show
when={props.osType !== "windows"}
fallback={
- <p class="text-sm text-gray-10">
+ <p class="text-xs text-gray-10 px-1">
No experimental features are currently available on this platform.
</p>
}
>
- <div class="space-y-3">
- <h3 class="text-sm text-gray-12 w-fit">Preview</h3>
- <div class="px-3 rounded-xl border divide-y divide-gray-3 border-gray-3 bg-gray-2">
+ <section class="space-y-2.5">
+ <header class="px-1">
+ <h3 class="text-sm font-semibold tracking-tight text-gray-12">
+ Preview
+ </h3>
+ </header>
+ <div class="overflow-hidden rounded-xl border border-gray-3 bg-gray-2">
<ToggleSettingItem
label="Native camera preview"
- description="Show the camera preview using a native GPU surface instead of rendering it within the webview. This is not functional on certain Windows systems so your mileage may vary."
+ description="Render the camera preview using a native GPU surface instead of through the webview. Not stable on certain Windows systems."
value={!!settings.enableNativeCameraPreview}
onChange={(value) =>
handleChange("enableNativeCameraPreview", value)
}
/>
</div>
- </div>
+ </section>
</Show>
- <div class="space-y-3">
- <h3 class="text-sm text-gray-12 w-fit">Reliability</h3>
- <div class="px-3 rounded-xl border divide-y divide-gray-3 border-gray-3 bg-gray-2">
+ <section class="space-y-2.5">
+ <header class="px-1">
+ <h3 class="text-sm font-semibold tracking-tight text-gray-12">
+ Reliability
+ </h3>
+ </header>
+ <div class="overflow-hidden rounded-xl border border-gray-3 bg-gray-2">
<ToggleSettingItem
label="Out-of-process muxer"
- description="Run the fragmented-MP4 muxer in an isolated subprocess so a muxer crash or codec assertion can no longer take down your recording. Requires the bundled cap-muxer binary. Early-access — please report issues if your recordings fail to finalize."
+ description="Run the fragmented-MP4 muxer in an isolated subprocess so muxer crashes can't take down your recording. Requires the bundled cap-muxer binary."
value={!!settings.outOfProcessMuxer}
onChange={(value) => handleChange("outOfProcessMuxer", value)}
/>
</div>
- </div>
+ </section>
</div>
</div>
);