Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
a few small improvements
Brendan Allan0570e393ba7d
diff --git a/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx b/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsxindex b00da7a6d..ef746b431 100644--- a/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx+++ b/apps/desktop/src/routes/editor/Timeline/ZoomTrack.tsx@@ -272,6 +272,14 @@ export function ZoomTrack(props: {Math.max(value.minValue, newStart)));++ setProject(+ "timeline",+ "zoomSegments",+ produce((s) => {+ s.sort((a, b) => a.start - b.start);+ })+ );})}/>@@ -361,6 +369,14 @@ export function ZoomTrack(props: {"end",Math.min(value.maxValue, Math.max(value.minValue, newEnd)));++ setProject(+ "timeline",+ "zoomSegments",+ produce((s) => {+ s.sort((a, b) => a.start - b.start);+ })+ );})}/>diff --git a/apps/desktop/src/routes/editor/Timeline/index.tsx b/apps/desktop/src/routes/editor/Timeline/index.tsxindex 4a5a84a8c..4181bd8a8 100644--- a/apps/desktop/src/routes/editor/Timeline/index.tsx+++ b/apps/desktop/src/routes/editor/Timeline/index.tsx@@ -225,21 +225,22 @@ export function Timeline() {</div>)}</Show>- <Show when={!split()}>- <div- class="absolute bottom-0 top-4 h-full rounded-full z-10 w-px pointer-events-none bg-gradient-to-b to-[120%] from-[rgb(226,64,64)]"- style={{- left: `${TIMELINE_PADDING}px`,- transform: `translateX(${Math.min(- (editorState.playbackTime - transform().position) /- secsPerPixel(),- timelineBounds.width ?? 0- )}px)`,- }}- >- <div class="size-3 bg-[rgb(226,64,64)] rounded-full -mt-2 -ml-[calc(0.37rem-0.5px)]" />- </div>- </Show>+ <div+ class={cx(+ "absolute bottom-0 top-4 h-full rounded-full z-10 w-px pointer-events-none bg-gradient-to-b to-[120%] from-[rgb(226,64,64)]",+ split() && "opacity-50"+ )}+ style={{+ left: `${TIMELINE_PADDING}px`,+ transform: `translateX(${Math.min(+ (editorState.playbackTime - transform().position) /+ secsPerPixel(),+ timelineBounds.width ?? 0+ )}px)`,+ }}+ >+ <div class="size-3 bg-[rgb(226,64,64)] rounded-full -mt-2 -ml-[calc(0.37rem-0.5px)]" />+ </div><ClipTrackref={setTimelineRef}handleUpdatePlayhead={handleUpdatePlayhead}diff --git a/apps/web/app/globals.css b/apps/web/app/globals.cssindex 1661964cb..467a02a37 100644--- a/apps/web/app/globals.css+++ b/apps/web/app/globals.css@@ -1,9 +1,9 @@-@import '@radix-ui/colors/red.css';-@import '@radix-ui/colors/red-dark.css';-@import '@radix-ui/colors/gray.css';-@import '@radix-ui/colors/gray-alpha.css';-@import '@radix-ui/colors/gray-dark.css';-@import '@radix-ui/colors/blue.css';+@import "@radix-ui/colors/red.css";+@import "@radix-ui/colors/red-dark.css";+@import "@radix-ui/colors/gray.css";+@import "@radix-ui/colors/gray-alpha.css";+@import "@radix-ui/colors/gray-dark.css";+@import "@radix-ui/colors/blue.css";@tailwind base;@tailwind components;@@ -68,7 +68,7 @@ html {}.wrapper {- @apply mx-auto w-[92%] max-w-screen-xl;+ @apply mx-auto w-[92%] max-w-screen-2xl;}.wrapper-max {@@ -79,7 +79,10 @@ html {@apply max-w-5xl;}-.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {+.prose+ :where(blockquote p:first-of-type):not(+ :where([class~="not-prose"], [class~="not-prose"] *)+ )::before {content: "“" !important;display: none;}@@ -155,7 +158,7 @@ a.bg-primary:hover {}.TooltipContent {- transform-origin: var(--radix-tooltip-content-transform-origin);+ transform-origin: var(--radix-tooltip-content-transform-origin);}@keyframes slideRight {@@ -194,7 +197,6 @@ a.bg-primary:hover {animation-iteration-count: infinite;}-@keyframes slideLeft {from {opacity: 0;@@ -228,17 +230,14 @@ a.bg-primary:hover {}}-.button-gradient-border::before {- content: '';+ content: "";position: absolute;inset: 0;padding: 1px;border-radius: var(--gradient-border-radius);background: linear-gradient(to bottom, #ffffff40 70%, #ffffff00 100%);- -webkit-mask:- linear-gradient(#fff 0 0) content-box,- linear-gradient(#fff 0 0);+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite: xor;mask-composite: exclude;}@@ -262,7 +261,8 @@ a,p,span,input,-label, button {+label,+button {@apply tracking-tight text-gray-10 font-normal text-[1rem] leading-[1.5rem];}@@ -293,49 +293,43 @@ label {}.play-button-outer-border::before {- content: '';- position: absolute;- inset: 0;- padding: 1px;- border-radius: 100px;- background: linear-gradient(to bottom, #fff, transparent 100%);- -webkit-mask:- linear-gradient(#fff 0 0) content-box,- linear-gradient(#fff 0 0);- -webkit-mask-composite: xor;- mask-composite: exclude;+ content: "";+ position: absolute;+ inset: 0;+ padding: 1px;+ border-radius: 100px;+ background: linear-gradient(to bottom, #fff, transparent 100%);+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);+ -webkit-mask-composite: xor;+ mask-composite: exclude;}.inner-play-button-border-two::before {- content: '';+ content: "";position: absolute;inset: 0;padding: 1px;border-radius: 100px;- background: linear-gradient(to bottom, #446FAE 20%, transparent 90%);- -webkit-mask:- linear-gradient(#fff 0 0) content-box,- linear-gradient(#fff 0 0);+ background: linear-gradient(to bottom, #446fae 20%, transparent 90%);+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite: xor;mask-composite: exclude;}.inner-play-button-border::before {- content: '';+ content: "";position: absolute;inset: 0;padding: 1px;border-radius: 100px;background: linear-gradient(to bottom, #fff 10%, transparent 50%);- -webkit-mask:- linear-gradient(#fff 0 0) content-box,- linear-gradient(#fff 0 0);+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite: xor;mask-composite: exclude;}.custom-bg {- background: linear-gradient(180deg, #4785FF 0%, #85ADFF 100%);+ background: linear-gradient(180deg, #4785ff 0%, #85adff 100%);}.muted-custom-bg {@@ -436,7 +430,7 @@ label {ul {@apply pl-5 list-disc;}-/*+/*.embossed {@apply bg-white-a12 border-2 border-filler-3 relative w-[320px] max-w-full min-h-[60px] rounded-xl z-10;}@@ -457,7 +451,11 @@ ul {@apply pb-4 border-b border-filler;}-.dashboard-page h1, .dashboard-page h2, .dashboard-page h3, .dashboard-page h4, .dashboard-page h5 {+.dashboard-page h1,+.dashboard-page h2,+.dashboard-page h3,+.dashboard-page h4,+.dashboard-page h5 {@apply text-[1rem] font-medium leading-[1.25rem] text-gray-12 !important;}@@ -471,7 +469,7 @@ slot:not(.dashboard-layout slot) {}.dashboard-layout {- @apply bg-gray-50+ @apply bg-gray-50;}/* Custom scrollbar */@@ -535,7 +533,7 @@ footer ul {}footer h3 {- @apply text-xl font-semibold !important;+ @apply text-xl font-semibold !important;}footer a {@@ -551,17 +549,20 @@ footer a {@apply mt-6 text-2xl font-semibold;}-.prose p, .prose li, .prose a {+.prose p,+.prose li,+.prose a {@apply tracking-tight font-normal text-[1.125rem] leading-[1.75rem] !important;}-.prose p, .prose li {+.prose p,+.prose li {@apply text-gray-12 !important;}.new-card-style {- background: #FFFFFF;- border: 1px solid #E7EAF0;+ background: #ffffff;+ border: 1px solid #e7eaf0;box-shadow: 0px 8px 16px rgba(18, 22, 31, 0.04);border-radius: 20px;}@@ -582,9 +583,10 @@ footer a {}/* Safari-specific styles using CSS hacks */-@media screen and (-webkit-min-device-pixel-ratio:0) {- _::-webkit-full-page-media, _:future, :root #video-container {- height: calc(100% - 1.70rem) !important;+@media screen and (-webkit-min-device-pixel-ratio: 0) {+ _::-webkit-full-page-media,+ _:future,+ :root #video-container {+ height: calc(100% - 1.7rem) !important;}}-