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:
parent
173f6e7c8f
commit
19d8422933
2 changed files with 11 additions and 11 deletions
|
@ -117,17 +117,15 @@ impl RenderOnce for StoryContainer {
|
||||||
pub struct Story {}
|
pub struct Story {}
|
||||||
|
|
||||||
impl Story {
|
impl Story {
|
||||||
pub fn container() -> Div {
|
pub fn container() -> gpui::Stateful<Div> {
|
||||||
div().size_full().overflow_hidden().child(
|
div()
|
||||||
div()
|
.id("story_container")
|
||||||
.id("story_container")
|
.overflow_y_scroll()
|
||||||
.overflow_y_scroll()
|
.w_full()
|
||||||
.w_full()
|
.min_h_full()
|
||||||
.min_h_full()
|
.flex()
|
||||||
.flex()
|
.flex_col()
|
||||||
.flex_col()
|
.bg(story_color().background)
|
||||||
.bg(story_color().background),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Move all stories to container2, then rename
|
// TODO: Move all stories to container2, then rename
|
||||||
|
|
|
@ -25,6 +25,8 @@ impl Render for OverflowScrollStory {
|
||||||
.child(Story::label("`overflow_y_scroll`"))
|
.child(Story::label("`overflow_y_scroll`"))
|
||||||
.child(
|
.child(
|
||||||
v_flex()
|
v_flex()
|
||||||
|
.w_full()
|
||||||
|
.flex_1()
|
||||||
.id("overflow_y_scroll")
|
.id("overflow_y_scroll")
|
||||||
.gap_2()
|
.gap_2()
|
||||||
.overflow_y_scroll()
|
.overflow_y_scroll()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue