Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(desktop-ui): format settings and target-select overlay routes

Richie McIlroy535e845ccc9e
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
index e5796f8bd..7af10cc3c 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
@@ -648,7 +648,9 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
setSettings("recordingsPath", path);
}
} catch (e) {
- toast.error(`Failed to choose recordings folder: ${e instanceof Error ? e.message : String(e)}`);
+ toast.error(
+ `Failed to choose recordings folder: ${e instanceof Error ? e.message : String(e)}`,
+ );
}
}}
onReset={async () => {
@@ -656,7 +658,9 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
await commands.resetRecordingsFolder();
setSettings("recordingsPath", null);
} catch (e) {
- toast.error(`Failed to reset recordings folder: ${e instanceof Error ? e.message : String(e)}`);
+ toast.error(
+ `Failed to reset recordings folder: ${e instanceof Error ? e.message : String(e)}`,
+ );
}
}}
/>
@@ -719,10 +723,7 @@ function StorageSection(props: {
const isCustom = () => props.recordingsPath !== null;
return (
- <Section
- title="Storage"
- description="Where Cap saves your recordings."
- >
+ <Section title="Storage" description="Where Cap saves your recordings.">
<SectionCard padded>
<div class="flex flex-col gap-3">
<div class="flex items-center gap-2 px-3 py-2 rounded-lg bg-gray-3 border border-gray-4 min-w-0">
diff --git a/apps/desktop/src/routes/target-select-overlay.tsx b/apps/desktop/src/routes/target-select-overlay.tsx
index 22b20d9c3..7a34da63a 100644
--- a/apps/desktop/src/routes/target-select-overlay.tsx
+++ b/apps/desktop/src/routes/target-select-overlay.tsx
@@ -1749,8 +1749,7 @@ function RecordingControls(props: {
capture_system_audio: rawOptions.captureSystemAudio,
})
.catch((e: unknown) => {
- const msg =
- e instanceof Error ? e.message : String(e);
+ const msg = e instanceof Error ? e.message : String(e);
if (
msg.includes("no longer available") ||
msg.includes("DeviceNotFound")
@@ -1759,9 +1758,7 @@ function RecordingControls(props: {
"Selected microphone is not available. Please select a different microphone in settings.",
);
} else {
- toast.error(
- `Failed to start recording: ${msg}`,
- );
+ toast.error(`Failed to start recording: ${msg}`);
}
});
}}