mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 02:17:35 +03:00
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
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user