Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
stories: Get OverflowScrollStory to scroll again (#15982)
Thorsten Ball19d84229337d
diff --git a/crates/story/src/story.rs b/crates/story/src/story.rsindex 1f37267cdb9..4f153aaac82 100644--- a/crates/story/src/story.rs+++ b/crates/story/src/story.rs@@ -117,17 +117,15 @@ impl RenderOnce for StoryContainer {pub struct Story {}impl Story {- pub fn container() -> Div {- div().size_full().overflow_hidden().child(- div()- .id("story_container")- .overflow_y_scroll()- .w_full()- .min_h_full()- .flex()- .flex_col()- .bg(story_color().background),- )+ pub fn container() -> gpui::Stateful<Div> {+ div()+ .id("story_container")+ .overflow_y_scroll()+ .w_full()+ .min_h_full()+ .flex()+ .flex_col()+ .bg(story_color().background)}// TODO: Move all stories to container2, then renamediff --git a/crates/storybook/src/stories/overflow_scroll.rs b/crates/storybook/src/stories/overflow_scroll.rsindex ee2ea12c00e..5e507541b51 100644--- a/crates/storybook/src/stories/overflow_scroll.rs+++ b/crates/storybook/src/stories/overflow_scroll.rs@@ -25,6 +25,8 @@ impl Render for OverflowScrollStory {.child(Story::label("`overflow_y_scroll`")).child(v_flex()+ .w_full()+ .flex_1().id("overflow_y_scroll").gap_2().overflow_y_scroll()