stories: Get OverflowScrollStory to scroll again (#15982)

This makes it at least scroll again, but it doesn't scroll down to the
last element yet. We haven't figured out why yet.


Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
Thorsten Ball 2024-08-09 12:32:26 +02:00 committed by GitHub
parent 173f6e7c8f
commit 19d8422933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View File

@ -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 rename

View File

@ -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()