Remove 2 suffix for ui, storybook, text
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
0cf65223ce
commit
4305c5fdbe
142 changed files with 106 additions and 5018 deletions
39
crates/storybook/src/stories/overflow_scroll.rs
Normal file
39
crates/storybook/src/stories/overflow_scroll.rs
Normal file
|
@ -0,0 +1,39 @@
|
|||
use gpui::Render;
|
||||
use story::Story;
|
||||
|
||||
use ui::prelude::*;
|
||||
|
||||
pub struct OverflowScrollStory;
|
||||
|
||||
impl Render for OverflowScrollStory {
|
||||
fn render(&mut self, _cx: &mut ViewContext<Self>) -> impl IntoElement {
|
||||
Story::container()
|
||||
.child(Story::title("Overflow Scroll"))
|
||||
.child(Story::label("`overflow_x_scroll`"))
|
||||
.child(
|
||||
h_stack()
|
||||
.id("overflow_x_scroll")
|
||||
.gap_2()
|
||||
.overflow_x_scroll()
|
||||
.children((0..100).map(|i| {
|
||||
div()
|
||||
.p_4()
|
||||
.debug_bg_cyan()
|
||||
.child(SharedString::from(format!("Child {}", i + 1)))
|
||||
})),
|
||||
)
|
||||
.child(Story::label("`overflow_y_scroll`"))
|
||||
.child(
|
||||
v_stack()
|
||||
.id("overflow_y_scroll")
|
||||
.gap_2()
|
||||
.overflow_y_scroll()
|
||||
.children((0..100).map(|i| {
|
||||
div()
|
||||
.p_4()
|
||||
.debug_bg_green()
|
||||
.child(SharedString::from(format!("Child {}", i + 1)))
|
||||
})),
|
||||
)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue