Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(desktop): remove redundant cursor-pointer from settings UI

Richie McIlroyca49eed85a1e
diff --git a/apps/desktop/src/components/ModeSelect.tsx b/apps/desktop/src/components/ModeSelect.tsx
index 9af75e160..34ab6e51f 100644
--- a/apps/desktop/src/components/ModeSelect.tsx
+++ b/apps/desktop/src/components/ModeSelect.tsx
@@ -18,7 +18,7 @@ const ModeOption = (props: ModeOptionProps) => {
data-tauri-drag-region="false"
onClick={() => props.onSelect(props.mode)}
class={cx(
- "relative flex flex-col items-center rounded-xl border-2 transition-all duration-200 cursor-pointer overflow-hidden group",
+ "relative flex flex-col items-center rounded-xl border-2 transition-all duration-200 overflow-hidden group",
props.isSelected
? "border-blue-9 bg-blue-3 dark:bg-blue-3/30 shadow-lg shadow-blue-9/10"
: "border-gray-4 dark:border-gray-5 bg-gray-2 dark:bg-gray-3 hover:border-gray-6 dark:hover:border-gray-6 hover:bg-gray-3 dark:hover:bg-gray-4",
@@ -96,7 +96,7 @@ const ModeSelect = (props: { onClose?: () => void; standalone?: boolean }) => {
<Show when={props.onClose}>
<div
onClick={() => props.onClose?.()}
- class="absolute -top-2.5 -right-2.5 p-2 rounded-full border duration-200 bg-gray-2 border-gray-3 hover:bg-gray-3 transition-colors cursor-pointer"
+ class="absolute -top-2.5 -right-2.5 p-2 rounded-full border duration-200 bg-gray-2 border-gray-3 hover:bg-gray-3 transition-colors"
>
<IconCapX class="invert-1 size-2 dark:invert" />
</div>
diff --git a/apps/desktop/src/components/Toggle.tsx b/apps/desktop/src/components/Toggle.tsx
index 74928408b..43e8d2250 100644
--- a/apps/desktop/src/components/Toggle.tsx
+++ b/apps/desktop/src/components/Toggle.tsx
@@ -41,7 +41,7 @@ export function Toggle(
return (
<KSwitch class="relative" {...others}>
- <KSwitch.Input class="peer absolute inset-0 opacity-0 cursor-pointer" />
+ <KSwitch.Input class="peer absolute inset-0 opacity-0" />
<KSwitch.Control class={toggleControlStyles({ size: local.size })}>
<KSwitch.Thumb class={toggleThumbStyles({ size: local.size })} />
</KSwitch.Control>
diff --git a/apps/desktop/src/routes/(window-chrome)/onboarding.tsx b/apps/desktop/src/routes/(window-chrome)/onboarding.tsx
index 68bc3b578..6a84061a3 100644
--- a/apps/desktop/src/routes/(window-chrome)/onboarding.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/onboarding.tsx
@@ -889,7 +889,7 @@ function ToggleStep(props: { active: boolean }) {
{(mode, index) => (
<div
class={cx(
- "rounded-full flex items-center justify-center transition-colors duration-300 cursor-pointer hover:brightness-95 border",
+ "rounded-full flex items-center justify-center transition-colors duration-300 hover:brightness-95 border",
activeMode() === index()
? "bg-gray-7 border-transparent dark:border-gray-6"
: "bg-white dark:bg-gray-4 border-gray-5 dark:border-gray-6",
@@ -926,7 +926,7 @@ function ToggleStep(props: { active: boolean }) {
{(mode, index) => (
<span
class={cx(
- "text-sm font-medium text-center transition-all duration-300 cursor-pointer",
+ "text-sm font-medium text-center transition-all duration-300",
activeMode() === index()
? "text-gray-12"
: "text-gray-9 opacity-50",
@@ -1912,7 +1912,7 @@ function StartupOverlay(props: {
style={{ transition: "all 600ms cubic-bezier(0.4, 0, 0.2, 1)" }}
>
<div class="text-center">
- <div onClick={handleLogoClick} class="cursor-pointer inline-block">
+ <div onClick={handleLogoClick} class="inline-block">
<IconCapLogo
class={cx(
"w-20 h-24 mx-auto drop-shadow-[0_0_100px_rgba(0,0,0,0.2)]",
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/automations.tsx b/apps/desktop/src/routes/(window-chrome)/settings/automations.tsx
index 2c47899ea..ff1a85557 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/automations.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/automations.tsx
@@ -391,7 +391,7 @@ function SelectInput<T extends string>(props: {
type="button"
onClick={() => void openMenu()}
class={cx(
- "flex gap-2 justify-between items-center w-full px-2.5 h-8 text-[13px] rounded-lg border transition-colors cursor-pointer bg-gray-1 border-gray-3 text-gray-12 outline-none hover:bg-gray-2 hover:border-gray-5 focus-visible:border-gray-6",
+ "flex gap-2 justify-between items-center w-full px-2.5 h-8 text-[13px] rounded-lg border transition-colors bg-gray-1 border-gray-3 text-gray-12 outline-none hover:bg-gray-2 hover:border-gray-5 focus-visible:border-gray-6",
props.class,
)}
>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
index 7af10cc3c..a491c98c9 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/general.tsx
@@ -1135,7 +1135,7 @@ function DefaultProjectNameCard(props: {
<button
type="button"
title="Click to copy"
- class="px-1.5 py-0.5 mx-0.5 font-mono text-[11px] rounded-md transition-[background-color,color,transform] duration-150 ease-out cursor-pointer bg-gray-3 hover:bg-gray-4 active:scale-95 text-gray-12"
+ class="px-1.5 py-0.5 mx-0.5 font-mono text-[11px] rounded-md transition-[background-color,color,transform] duration-150 ease-out bg-gray-3 hover:bg-gray-4 active:scale-95 text-gray-12"
onClick={() => commands.writeClipboardString(props.children)}
>
{props.children}
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
index 312213d49..055d131fa 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx
@@ -190,7 +190,7 @@ function Inner(props: { initialStore: HotkeysStore | null }) {
fallback={
<p
class="flex items-center text-[11px] uppercase transition-colors hover:bg-gray-6 hover:border-gray-7
- cursor-pointer py-3 px-2.5 h-5 bg-gray-4 border border-gray-5 rounded-lg text-gray-11 hover:text-gray-12"
+ py-3 px-2.5 h-5 bg-gray-4 border border-gray-5 rounded-lg text-gray-11 hover:text-gray-12"
>
None
</p>
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
index 84b2724b1..461b80455 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/recordings.tsx
@@ -233,7 +233,7 @@ export default function Recordings() {
"flex gap-1.5 items-center transition-colors duration-200 p-2 px-3 border rounded-full",
activeTab() === tab.id
? "bg-gray-5 cursor-default border-gray-5"
- : "bg-transparent cursor-pointer hover:bg-gray-3 border-gray-5",
+ : "bg-transparent hover:bg-gray-3 border-gray-5",
)}
onClick={() => setActiveTab(tab.id)}
>
@@ -346,9 +346,7 @@ function RecordingItem(props: {
}}
class={cx(
"flex flex-row justify-between p-3 not-last:border-b not-last:border-gray-3 items-center w-full transition-colors duration-200",
- studioCompleteCheck()
- ? "cursor-pointer hover:bg-gray-3"
- : "cursor-default",
+ studioCompleteCheck() ? "hover:bg-gray-3" : "cursor-default",
)}
>
<div class="flex gap-5 items-center">
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx b/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
index 68e91d52d..98363de38 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/screenshots.tsx
@@ -284,7 +284,7 @@ function ScreenshotItem(props: {
return (
<li
onClick={props.onClick}
- class="flex flex-row justify-between p-3 not-last:border-b not-last:border-gray-3 items-center w-full cursor-pointer hover:bg-gray-3 transition-colors duration-200"
+ class="flex flex-row justify-between p-3 not-last:border-b not-last:border-gray-3 items-center w-full hover:bg-gray-3 transition-colors duration-200"
>
<div class="flex gap-5 items-center">
<Show