Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
style(desktop): remove redundant cursor-pointer from editor UI
Richie McIlroy6f1197746c63
diff --git a/apps/desktop/src/routes/editor/CaptionOverlay.tsx b/apps/desktop/src/routes/editor/CaptionOverlay.tsxindex 2bc0aa98d..17516a1a9 100644--- a/apps/desktop/src/routes/editor/CaptionOverlay.tsx+++ b/apps/desktop/src/routes/editor/CaptionOverlay.tsx@@ -298,7 +298,7 @@ export function CaptionOverlay(props: CaptionOverlayProps) {classList={{"border-blue-9 bg-blue-9/10 cursor-move":selectedCaptionIndex() === caption().index,- "border-transparent hover:border-blue-6 hover:bg-blue-9/5 cursor-pointer":+ "border-transparent hover:border-blue-6 hover:bg-blue-9/5":selectedCaptionIndex() !== caption().index,}}style={{diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsxindex bbcc4ad53..7bfea32ec 100644--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx@@ -738,7 +738,7 @@ export function ConfigSidebar() {class="rounded-lg border border-gray-3 transition-colors data-checked:border-blue-8 data-checked:bg-blue-3/40"><RadioGroup.ItemInput class="sr-only" />- <RadioGroup.ItemLabel class="flex cursor-pointer items-start gap-3 p-3">+ <RadioGroup.ItemLabel class="flex items-start gap-3 p-3"><RadioGroup.ItemControl class="mt-1 size-4 rounded-full border border-gray-7 data-checked:border-blue-9 data-checked:bg-blue-9" /><div class="flex flex-col text-left"><span class="text-sm font-medium text-gray-12">@@ -822,7 +822,7 @@ export function ConfigSidebar() {class="rounded-lg border border-gray-3 transition-colors data-checked:border-blue-8 data-checked:bg-blue-3/40"><RadioGroup.ItemInput class="sr-only" />- <RadioGroup.ItemLabel class="flex cursor-pointer items-start gap-3 p-3">+ <RadioGroup.ItemLabel class="flex items-start gap-3 p-3"><RadioGroup.ItemControl class="mt-1 size-4 rounded-full border border-gray-7 data-checked:border-blue-9 data-checked:bg-blue-9" /><div class="flex flex-col text-left"><span class="text-sm font-medium text-gray-12">@@ -2157,7 +2157,7 @@ function BackgroundConfig(props: {ensureBackgroundPresentation();}}class={cx(- "overflow-hidden relative w-full h-48 rounded-lg border transition cursor-pointer group",+ "overflow-hidden relative w-full h-48 rounded-lg border transition group",project.background.source.type === "wallpaper" &&project.background.source.path === photo().rawPath? "border-blue-9 ring-2 ring-blue-9"@@ -2271,7 +2271,7 @@ function BackgroundConfig(props: {class="relative aspect-square group"><KRadioGroup.ItemInput class="peer" />- <KRadioGroup.ItemControl class="overflow-hidden w-full h-full rounded-lg transition cursor-pointer not-data-checked:ring-offset-1 not-data-checked:ring-offset-gray-200 not-data-checked:hover:ring-1 not-data-checked:hover:ring-gray-400 data-checked:ring-2 data-checked:ring-gray-500 data-checked:ring-offset-2 data-checked:ring-offset-gray-200">+ <KRadioGroup.ItemControl class="overflow-hidden w-full h-full rounded-lg transition not-data-checked:ring-offset-1 not-data-checked:ring-offset-gray-200 not-data-checked:hover:ring-1 not-data-checked:hover:ring-gray-400 data-checked:ring-2 data-checked:ring-gray-500 data-checked:ring-offset-2 data-checked:ring-offset-gray-200"><imgsrc={photo.url}loading="eager"@@ -2292,7 +2292,7 @@ function BackgroundConfig(props: {class="relative aspect-square group"><KRadioGroup.ItemInput class="peer" />- <KRadioGroup.ItemControl class="overflow-hidden w-full h-full rounded-lg border cursor-pointer border-gray-5 data-checked:border-blue-9 data-checked:ring-2 data-checked:ring-blue-9 peer-focus-visible:border-2 peer-focus-visible:border-blue-9">+ <KRadioGroup.ItemControl class="overflow-hidden w-full h-full rounded-lg border border-gray-5 data-checked:border-blue-9 data-checked:ring-2 data-checked:ring-blue-9 peer-focus-visible:border-2 peer-focus-visible:border-blue-9"><imgsrc={photo.url}alt="Wallpaper option"@@ -2445,7 +2445,7 @@ function BackgroundConfig(props: {}}/><div- class="rounded-lg transition-all duration-200 cursor-pointer size-8 hover:peer-checked:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"+ class="rounded-lg transition-all duration-200 size-8 hover:peer-checked:opacity-100 peer-hover:opacity-70 peer-checked:ring-2 peer-checked:ring-gray-500 peer-checked:ring-offset-2 peer-checked:ring-offset-gray-200"style={{background:color === "#00000000"@@ -2775,7 +2775,7 @@ function CameraConfig(props: { scrollRef: HTMLDivElement }) {<RadioGroup.ItemInput class="peer" /><RadioGroup.ItemControlclass={cx(- "cursor-pointer size-6 shrink-0 rounded-md absolute flex justify-center items-center focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-blue-9 focus-visible:outline-offset-2 peer-focus-visible:outline-solid peer-focus-visible:outline-2 peer-focus-visible:outline-blue-9 peer-focus-visible:outline-offset-2 transition-colors duration-100",+ "size-6 shrink-0 rounded-md absolute flex justify-center items-center focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-blue-9 focus-visible:outline-offset-2 peer-focus-visible:outline-solid peer-focus-visible:outline-2 peer-focus-visible:outline-blue-9 peer-focus-visible:outline-offset-2 transition-colors duration-100",selected() ? "bg-blue-9" : "bg-gray-5",item.x === "left"? "left-2"@@ -3143,7 +3143,7 @@ function HexColorInput(props: {<div class="relative"><buttontype="button"- class="size-[2rem] rounded-[0.5rem] cursor-pointer transition-[box-shadow]"+ class="size-[2rem] rounded-[0.5rem] transition-[box-shadow]"style={{"background-color": text(),"box-shadow": `inset 0 0 0 1px ${getColorPreviewBorderColor(@@ -3157,7 +3157,7 @@ function HexColorInput(props: {colorInput = el;}}type="color"- class="absolute inset-0 w-full h-full opacity-0 cursor-pointer"+ class="absolute inset-0 w-full h-full opacity-0"value={text()}onInput={(e) => {const next = e.currentTarget.value;@@ -3813,7 +3813,7 @@ function MaskSegmentConfig(props: {class="rounded-lg border border-gray-3 transition-colors data-checked:border-blue-8 data-checked:bg-blue-3/40"><RadioGroup.ItemInput class="sr-only" />- <RadioGroup.ItemLabel class="flex cursor-pointer items-center gap-2 p-2 text-sm text-gray-12">+ <RadioGroup.ItemLabel class="flex items-center gap-2 p-2 text-sm text-gray-12"><RadioGroup.ItemControl class="size-4 rounded-full border border-gray-7 data-checked:border-blue-9 data-checked:bg-blue-9" />{option.label}</RadioGroup.ItemLabel>diff --git a/apps/desktop/src/routes/editor/ExportPage.tsx b/apps/desktop/src/routes/editor/ExportPage.tsxindex 74f3bf294..370a891c0 100644--- a/apps/desktop/src/routes/editor/ExportPage.tsx+++ b/apps/desktop/src/routes/editor/ExportPage.tsx@@ -1316,7 +1316,7 @@ export function ExportPage() {setSettings("compression", preset.value);}}}- class="w-full h-1.5 bg-gray-4 rounded-full appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-3.5 [&::-webkit-slider-thumb]:h-3.5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-blue-9 [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:transition-transform [&::-webkit-slider-thumb]:hover:scale-110"+ class="w-full h-1.5 bg-gray-4 rounded-full appearance-none [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-3.5 [&::-webkit-slider-thumb]:h-3.5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-blue-9 [&::-webkit-slider-thumb]:transition-transform [&::-webkit-slider-thumb]:hover:scale-110"/><div class="flex justify-between text-[10px] text-gray-9"><span>0.02 (tiny)</span>diff --git a/apps/desktop/src/routes/editor/GradientEditor.tsx b/apps/desktop/src/routes/editor/GradientEditor.tsxindex b09b7e09d..a2aba5995 100644--- a/apps/desktop/src/routes/editor/GradientEditor.tsx+++ b/apps/desktop/src/routes/editor/GradientEditor.tsx@@ -225,7 +225,7 @@ export function GradientEditor(props: {<div class="flex flex-wrap gap-2"><buttontype="button"- class="flex items-center justify-center rounded-lg transition-all duration-200 cursor-pointer size-8 hover:opacity-80 hover:scale-105 border border-dashed border-gray-8 bg-gray-2 text-gray-10"+ class="flex items-center justify-center rounded-lg transition-all duration-200 size-8 hover:opacity-80 hover:scale-105 border border-dashed border-gray-8 bg-gray-2 text-gray-10"onClick={() => {updateGradient({from: randomColor(),@@ -256,7 +256,7 @@ export function GradientEditor(props: {{(gradient) => (<buttontype="button"- class="rounded-lg transition-all duration-200 cursor-pointer size-8 hover:opacity-80 hover:scale-105 ring-offset-2 ring-offset-gray-200"+ class="rounded-lg transition-all duration-200 size-8 hover:opacity-80 hover:scale-105 ring-offset-2 ring-offset-gray-200"classList={{"ring-2 ring-gray-500":src().from[0] === gradient.from[0] &&diff --git a/apps/desktop/src/routes/editor/MaskOverlay.tsx b/apps/desktop/src/routes/editor/MaskOverlay.tsxindex db61f6796..ec11f144b 100644--- a/apps/desktop/src/routes/editor/MaskOverlay.tsx+++ b/apps/desktop/src/routes/editor/MaskOverlay.tsx@@ -171,7 +171,7 @@ export function MaskOverlay(props: MaskOverlayProps) {fallback={<divclass={cx(- "absolute pointer-events-auto cursor-pointer rounded-md border-2 transition-colors",+ "absolute pointer-events-auto rounded-md border-2 transition-colors",overlayClass(),)}style={{diff --git a/apps/desktop/src/routes/editor/PerformanceOverlay.tsx b/apps/desktop/src/routes/editor/PerformanceOverlay.tsxindex c9b48a709..2a5f14383 100644--- a/apps/desktop/src/routes/editor/PerformanceOverlay.tsx+++ b/apps/desktop/src/routes/editor/PerformanceOverlay.tsx@@ -218,7 +218,7 @@ export function PerformanceOverlay(_props: PerformanceOverlayProps) {}}><div- class="rounded-md px-2 py-1.5 shadow-lg backdrop-blur-xs pointer-events-auto cursor-pointer hover:brightness-110 transition-[filter]"+ class="rounded-md px-2 py-1.5 shadow-lg backdrop-blur-xs pointer-events-auto hover:brightness-110 transition-[filter]"style={{"background-color": "rgba(0, 0, 0, 0.8)",border: "1px solid rgba(255, 255, 255, 0.15)",diff --git a/apps/desktop/src/routes/editor/TextOverlay.tsx b/apps/desktop/src/routes/editor/TextOverlay.tsxindex c05ad892c..7c98efdd1 100644--- a/apps/desktop/src/routes/editor/TextOverlay.tsx+++ b/apps/desktop/src/routes/editor/TextOverlay.tsx@@ -496,7 +496,7 @@ function TextSegmentOverlay(props: {class="absolute inset-0 rounded-md border-2 transition-colors"classList={{"border-blue-9 bg-blue-9/10 cursor-move": props.isSelected,- "border-transparent hover:border-blue-6 hover:bg-blue-9/5 cursor-pointer":+ "border-transparent hover:border-blue-6 hover:bg-blue-9/5":!props.isSelected,}}/>diff --git a/apps/desktop/src/routes/editor/TranscriptPage.tsx b/apps/desktop/src/routes/editor/TranscriptPage.tsxindex 4a62432e6..3896154ea 100644--- a/apps/desktop/src/routes/editor/TranscriptPage.tsx+++ b/apps/desktop/src/routes/editor/TranscriptPage.tsx@@ -589,7 +589,7 @@ function TranscriptWord(props: {<spanref={props.ref}class={cx(- "cursor-pointer transition-colors duration-100 rounded-xs relative",+ "transition-colors duration-100 rounded-xs relative",props.isSelected && "bg-blue-4/50",props.isActive? "text-blue-11"diff --git a/apps/desktop/src/routes/editor/ui.tsx b/apps/desktop/src/routes/editor/ui.tsxindex ee500bf91..789fc3b1c 100644--- a/apps/desktop/src/routes/editor/ui.tsx+++ b/apps/desktop/src/routes/editor/ui.tsx@@ -104,7 +104,7 @@ export function Slider(}}><KSlider.Track- class="h-[0.3rem] cursor-pointer transition-[height] relative mx-1 bg-gray-4 rounded-full w-full before:content-[''] before:absolute before:inset-0 before:-top-3 before:-bottom-3"+ class="h-[0.3rem] transition-[height] relative mx-1 bg-gray-4 rounded-full w-full before:content-[''] before:absolute before:inset-0 before:-top-3 before:-bottom-3"onPointerDown={() => {setDragging(true);createRoot((dispose) => {@@ -145,7 +145,7 @@ export function Slider(setDragging(false);}}class={cx(- "bg-gray-1 dark:bg-gray-12 border border-gray-6 shadow-md rounded-full outline-hidden size-4 -top-[6.3px] data-disabled:bg-gray-9 after:content-[''] after:absolute after:inset-0 after:-m-3 after:cursor-pointer",+ "bg-gray-1 dark:bg-gray-12 border border-gray-6 shadow-md rounded-full outline-hidden size-4 -top-[6.3px] data-disabled:bg-gray-9 after:content-[''] after:absolute after:inset-0 after:-m-3",)}/></Tooltip>