Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

wip (#851)

Ameer Al Ashhabe7122cf0a82f
diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsx
index 86e76e952..62c0e99e2 100644
--- a/apps/desktop/src/routes/(window-chrome)/(main).tsx
+++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx
@@ -314,8 +314,8 @@ function Page() {
{license.data?.type === "commercial"
? "Commercial"
: license.data?.type === "pro"
- ? "Pro"
- : "Personal"}
+ ? "Pro"
+ : "Personal"}
</span>
</Suspense>
</ErrorBoundary>
@@ -346,7 +346,7 @@ function Page() {
"flex flex-row items-center rounded-[0.5rem] relative border h-8 transition-all duration-500",
(rawOptions.captureTarget.variant === "screen" ||
rawOptions.captureTarget.variant === "area") &&
- "ml-[2.4rem]"
+ "ml-[2.4rem]"
)}
style={{
"transition-timing-function":
@@ -438,11 +438,14 @@ function Page() {
<SystemAudio />
<div class="flex items-center space-x-1 w-full">
{rawOptions.mode === "instant" && !auth.data ? (
- <SignInButton>
- Sign In for{" "}
- <IconCapInstant class="size-[0.8rem] ml-[0.14rem] mr-0.5" />
- Instant Mode
- </SignInButton>
+ <>
+ <SignInButton
+ >
+ Sign In for{" "}
+ <IconCapInstant class="invert-0 dark:invert size-[0.8rem] mx-1" />
+ Instant Mode
+ </SignInButton>
+ </>
) : (
<Button
disabled={toggleRecording.isPending}
@@ -600,8 +603,8 @@ function AreaSelectButton(props: {
props.targetVariant === "area"
? "Remove selection"
: areaSelection.pending
- ? "Selecting area..."
- : "Select area"
+ ? "Selecting area..."
+ : "Select area"
}
childClass="flex fixed flex-row items-center w-8 h-8"
>
@@ -672,7 +675,7 @@ function AreaSelectButton(props: {
class={cx(
"w-[1rem] h-[1rem]",
areaSelection.pending &&
- "animate-gentle-bounce duration-1000 text-gray-12 mt-1"
+ "animate-gentle-bounce duration-1000 text-gray-12 mt-1"
)}
/>
</button>
@@ -995,8 +998,8 @@ function TargetSelectInfoPill<T>(props: {
{!props.permissionGranted
? "Request Permission"
: props.value !== null
- ? "On"
- : "Off"}
+ ? "On"
+ : "Off"}
</InfoPill>
);
}