Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(desktop): add cap-settings-page class to settings routes

Richie McIlroyeb8c97d5236d
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx
index 130c3e505..2d2d87976 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx
@@ -47,7 +47,7 @@ export default function Page() {
const fadeIn = changelog.isLoading;
return (
- <div class="flex flex-col h-full">
+ <div class="cap-settings-page flex flex-col h-full">
<div class="relative flex-1 custom-scroll">
<Suspense fallback={<AbsoluteInsetLoader />}>
<div
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
index be2ba9753..e6d570a27 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
@@ -51,7 +51,7 @@ function Inner(props: {
};
return (
- <div class="flex flex-col h-full custom-scroll">
+ <div class="cap-settings-page flex flex-col h-full custom-scroll">
<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">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
index 1c2f5deb1..deadc1c98 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx
@@ -56,7 +56,7 @@ export default function FeedbackTab() {
};
return (
- <div class="flex flex-col w-full h-full">
+ <div class="cap-settings-page flex flex-col w-full h-full">
<div class="flex-1 custom-scroll">
<div class="p-4 space-y-4">
<div class="flex flex-col pb-4 border-b border-gray-2">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
index 1e4c4ce79..b9b7ba47c 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
@@ -97,7 +97,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {
] satisfies Array<keyof typeof ACTION_TEXT>;
return (
- <div class="flex flex-col flex-1 p-4 h-full custom-scroll">
+ <div class="cap-settings-page flex flex-col flex-1 p-4 h-full custom-scroll">
<div class="flex flex-col pb-4 border-b border-gray-2">
<h2 class="text-lg font-medium text-gray-12">Shortcuts</h2>
<p class="text-sm text-gray-10 w-full max-w-[500px]">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/integrations/google-drive-config.tsx b/apps/desktop/src/routes/(window-chrome)/settings/integrations/google-drive-config.tsx
index 6df096680..136ccfd1e 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/integrations/google-drive-config.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/integrations/google-drive-config.tsx
@@ -273,7 +273,7 @@ export default function GoogleDriveConfigPage() {
disconnect.isPending;
return (
- <div class="flex flex-col p-4 h-full">
+ <div class="cap-settings-page flex flex-col p-4 h-full">
<IntegrationConfigHeader title="Google Drive" />
<div class="rounded-xl border bg-gray-2 border-gray-4 custom-scroll">
<div class="flex-1">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx b/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx
index 3f5863ed7..137646b2a 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx
@@ -101,7 +101,7 @@ export default function AppsTab() {
};
return (
- <div class="p-4 space-y-4">
+ <div class="cap-settings-page 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">Integrations</h2>
<p class="text-sm text-gray-10">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx b/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx
index 6c11ed5fe..846a36b4f 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/integrations/s3-config.tsx
@@ -154,7 +154,7 @@ export default function S3ConfigPage() {
);
return (
- <div class="flex flex-col p-4 h-full">
+ <div class="cap-settings-page flex flex-col p-4 h-full">
<IntegrationConfigHeader title="S3 Config" />
<div class="rounded-xl border bg-gray-2 border-gray-4 custom-scroll">
<div class="flex-1">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx b/apps/desktop/src/routes/(window-chrome)/settings/license.tsx
index 052f4f268..9345e1929 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/license.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/license.tsx
@@ -23,7 +23,7 @@ export default function Page() {
const queryClient = useQueryClient();
return (
- <div class="flex relative flex-col gap-3 items-center p-4 mx-auto h-full custom-scroll">
+ <div class="cap-settings-page flex relative flex-col gap-3 items-center p-4 mx-auto h-full custom-scroll">
<Switch fallback={<CommercialLicensePurchase />}>
<Match when={license.data?.type === "pro" && license.data}>
<div class="flex justify-center items-center w-full h-screen">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
index e4b91d0a7..830fa0051 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
@@ -187,7 +187,7 @@ export default function Recordings() {
};
return (
- <div class="flex relative flex-col p-4 space-y-4 w-full h-full">
+ <div class="cap-settings-page flex relative flex-col p-4 space-y-4 w-full h-full">
<div class="flex flex-col">
<h2 class="text-lg font-medium text-gray-12">Recordings</h2>
<p class="text-sm text-gray-10">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx b/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
index 1b7720fdb..bdd199df6 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
@@ -124,7 +124,7 @@ export default function Screenshots() {
};
return (
- <div class="flex relative flex-col p-4 space-y-4 w-full h-full">
+ <div class="cap-settings-page flex relative flex-col p-4 space-y-4 w-full h-full">
<div class="flex items-start justify-between gap-3">
<div class="flex flex-col">
<h2 class="text-lg font-medium text-gray-12">Screenshots</h2>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx b/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx
index d189c52ee..b2029a74e 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/transcription.tsx
@@ -94,7 +94,7 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
});
return (
- <div class="flex flex-col h-full custom-scroll">
+ <div class="cap-settings-page 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">Transcription</h2>