Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(gpui): fix editor clips display

dovidmoishe98e43a6be81a
diff --git a/apps/desktop-gpui/src/editor_clips.rs b/apps/desktop-gpui/src/editor_clips.rs
index 51c4bfa52..77d469544 100644
--- a/apps/desktop-gpui/src/editor_clips.rs
+++ b/apps/desktop-gpui/src/editor_clips.rs
@@ -464,6 +464,7 @@ impl EditorWindow {
if self.clips.open {
self.close_clips(window, cx);
} else {
+ edits::ensure_timeline(&mut self.project, &self.clip_display_durations);
self.clips.open = true;
}
cx.notify();
@@ -742,8 +743,10 @@ impl EditorWindow {
pub(crate) fn render_clips_sidebar(&mut self, cx: &mut Context<Self>) -> impl IntoElement {
div()
.w(px(crate::editor_window::SIDEBAR_WIDTH))
- .flex_none()
+ .h_full()
.flex()
+ .flex_col()
+ .flex_none()
.min_h_0()
.child(
div()
@@ -751,6 +754,7 @@ impl EditorWindow {
.flex_col()
.flex_1()
.min_h_0()
+ .h_full()
.overflow_hidden()
.rounded(px(12.))
.border_1()