Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Improve Prev-recordings border radius (for Windows)

Ilya262e23f5d27b
diff --git a/apps/desktop/src/routes/prev-recordings.tsx b/apps/desktop/src/routes/prev-recordings.tsx
index c94fbe977..ce57008ec 100644
--- a/apps/desktop/src/routes/prev-recordings.tsx
+++ b/apps/desktop/src/routes/prev-recordings.tsx
@@ -219,7 +219,7 @@ export default function () {
>
<div
class={cx(
- "w-full h-full flex relative bg-transparent rounded-[8px] border-[1px] overflow-hidden z-10",
+ "w-full h-full flex relative bg-transparent rounded-[8px] border-[1px] z-10 overflow-hidden",
"transition-all",
isLoading() && "backdrop-blur bg-gray-500/80"
)}
@@ -235,7 +235,7 @@ export default function () {
}
>
<img
- class="pointer-events-none w-full h-full object-cover absolute inset-0 -z-10 rounded-[6px]"
+ class="pointer-events-none w-full h-full object-cover absolute inset-0 -z-10 rounded-[7.4px]"
alt="media preview"
src={`${convertFileSrc(
isRecording
@@ -366,7 +366,7 @@ export default function () {
"background-color": "rgba(0, 0, 0, 0.4)",
}}
class={cx(
- "w-full h-full absolute inset-0 transition-all duration-150 pointer-events-auto",
+ "w-full h-full absolute inset-0 transition-all duration-150 pointer-events-auto rounded-[7.4px]",
isLoading() || showUpgradeTooltip()
? "opacity-100"
: "opacity-0 group-hover:opacity-100",
@@ -531,9 +531,14 @@ export default function () {
<Show when={metadata()}>
{(metadata) => (
<div
- style={{ color: "white", "font-size": "14px" }}
+ style={{
+ color: "white",
+ "font-size": "14px",
+ "border-end-end-radius": "7.4px",
+ "border-end-start-radius": "7.4px",
+ }}
class={cx(
- "absolute bottom-0 left-0 right-0 font-medium bg-gray-500 dark:bg-gray-50 bg-opacity-40 backdrop-blur p-2 flex justify-between items-center pointer-events-none transition-all",
+ "absolute bottom-0 left-0 right-0 font-medium bg-gray-500 dark:bg-gray-50 bg-opacity-40 backdrop-blur p-2 flex justify-between items-center pointer-events-none transition-all max-w-full overflow-hidden",
isLoading() || showUpgradeTooltip()
? "opacity-0"
: "group-hover:opacity-0"