Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix window occluder

Brendan Allan6e08b10eeb3a
diff --git a/apps/desktop-solid/src/routes/window-capture-occluder.tsx b/apps/desktop-solid/src/routes/window-capture-occluder.tsx
index 8e0f80f33..fd48d6f61 100644
--- a/apps/desktop-solid/src/routes/window-capture-occluder.tsx
+++ b/apps/desktop-solid/src/routes/window-capture-occluder.tsx
@@ -1,10 +1,12 @@
import { createQuery } from "@tanstack/solid-query";
-import { Show, Suspense } from "solid-js";
+import { createEffect, Show, Suspense } from "solid-js";
import { getCurrentRecording } from "../utils/queries";
export default function () {
const currentRecording = createQuery(() => getCurrentRecording);
+ createEffect(() => console.log(currentRecording.data));
+
return (
<Suspense>
<Show
@@ -17,11 +19,11 @@ export default function () {
{(bounds) => (
<div class="w-screen h-screen relative animate-in fade-in">
<div
- class="bg-black/40 absolute inset-x-0 top-0"
+ class="bg-black-transparent-40 absolute inset-x-0 top-0"
style={{ height: `${bounds().y}px` }}
/>
<div
- class="bg-black/40 absolute left-0"
+ class="bg-black-transparent-40 absolute left-0"
style={{
top: `${bounds().y}px`,
height: `${bounds().height}px`,
@@ -29,7 +31,7 @@ export default function () {
}}
/>
<div
- class="bg-black/40 absolute right-0"
+ class="bg-black-transparent-40 absolute right-0"
style={{
top: `${bounds().y}px`,
height: `${bounds().height}px`,
@@ -37,7 +39,7 @@ export default function () {
}}
/>
<div
- class="bg-black/40 absolute inset-x-0 bottom-0"
+ class="bg-black-transparent-40 absolute inset-x-0 bottom-0"
style={{
height: `calc(100vh - ${bounds().y + bounds().height}px)`,
}}