Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions apps/desktop/src/routes/editor/ConfigSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
Expand Down Expand Up @@ -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>
<Show
when={(() => {
Expand Down Expand Up @@ -872,9 +880,9 @@ export function ConfigSidebar() {
)}
</Show>
</Suspense>
</div>
)}
</Show>
)}
</Show>
</div>
</KTabs>
);
}
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src/routes/editor/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ export function Header() {
}}
tooltipText="Captions"
leftIcon={<IconCapCaptions class="w-5" />}
comingSoon={!editorState.timeline.selection}
comingSoon={true}
/>
<EditorButton
onClick={() => {
if (clearTimelineSelection()) return;
}}
tooltipText="Performance"
leftIcon={<IconCapGauge class="w-[18px]" />}
comingSoon={!editorState.timeline.selection}
comingSoon={true}
/>
</div>

Expand Down