Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: timeline selection ui (#1348)
Ameer Al Ashhab0bcc9ea438c6
diff --git a/apps/desktop/src/routes/editor/ConfigSidebar.tsx b/apps/desktop/src/routes/editor/ConfigSidebar.tsxindex 2e51a3cd0..bbdc48e1a 100644--- a/apps/desktop/src/routes/editor/ConfigSidebar.tsx+++ b/apps/desktop/src/routes/editor/ConfigSidebar.tsx@@ -333,6 +333,9 @@ export function ConfigSidebar() {"--margin-top-scroll": "5px",}}class="custom-scroll overflow-x-hidden overflow-y-scroll text-[0.875rem] flex-1 min-h-0"+ classList={{+ hidden: !!editorState.timeline.selection,+ }}><BackgroundConfig scrollRef={scrollRef} /><CameraConfig scrollRef={scrollRef} />@@ -645,14 +648,19 @@ export function ConfigSidebar() {<CaptionsTab /></KTabs.Content></div>- <Show when={editorState.timeline.selection}>- {(selection) => (- <div- style={{- "--margin-top-scroll": "5px",- }}- class="absolute custom-scroll p-5 top-16 left-0 right-0 bottom-0 text-[0.875rem] space-y-4 bg-gray-1 dark:bg-gray-2 z-50 animate-in slide-in-from-bottom-2 fade-in"- >+ <div+ style={{+ "--margin-top-scroll": "5px",+ }}+ class="custom-scroll p-5 top-16 left-0 right-0 bottom-0 text-[0.875rem] space-y-4 bg-gray-1 dark:bg-gray-2 z-50"+ classList={{+ hidden: !editorState.timeline.selection,+ "animate-in slide-in-from-bottom-2 fade-in":+ !!editorState.timeline.selection,+ }}+ >+ <Show when={editorState.timeline.selection}>+ {(selection) => (<Suspense><Showwhen={(() => {@@ -872,9 +880,9 @@ export function ConfigSidebar() {)}</Show></Suspense>- </div>- )}- </Show>+ )}+ </Show>+ </div></KTabs>);}diff --git a/apps/desktop/src/routes/editor/Header.tsx b/apps/desktop/src/routes/editor/Header.tsxindex 5f25c6d07..af14a57b9 100644--- a/apps/desktop/src/routes/editor/Header.tsx+++ b/apps/desktop/src/routes/editor/Header.tsx@@ -112,7 +112,7 @@ export function Header() {}}tooltipText="Captions"leftIcon={<IconCapCaptions class="w-5" />}- comingSoon={!editorState.timeline.selection}+ comingSoon={true}/><EditorButtononClick={() => {@@ -120,7 +120,7 @@ export function Header() {}}tooltipText="Performance"leftIcon={<IconCapGauge class="w-[18px]" />}- comingSoon={!editorState.timeline.selection}+ comingSoon={true}/></div>