mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 05:37:04 +00:00
rr-ribbon-w4: red round 1 fix (lead commit)
This commit is contained in:
@@ -75,7 +75,7 @@ fn open_more(fixture: &mut Fixture) {
|
||||
fixture.idle(2);
|
||||
}
|
||||
|
||||
#[story(Gallery<'static, usize>, covers = [], drive = Drive::Custom(open_more))]
|
||||
#[story(Gallery<'static, usize>, covers = [Open], drive = Drive::Custom(open_more))]
|
||||
fn gallery_more_open(ui: &mut Ui, _: &mut StoryData) -> StoryOutput {
|
||||
pictured(ui)
|
||||
}
|
||||
@@ -106,12 +106,3 @@ fn gallery_rendered(ui: &mut Ui, _: &mut StoryData) -> StoryOutput {
|
||||
.collect();
|
||||
show(ui, &items)
|
||||
}
|
||||
|
||||
#[story(Gallery<'static, usize>, covers = [], drive = Drive::Never)]
|
||||
fn gallery_rtl(ui: &mut Ui, _: &mut StoryData) -> StoryOutput {
|
||||
with_env(
|
||||
ui,
|
||||
|set| set.direction = Some(craft_i18n::Direction::Rtl),
|
||||
|ui| pictured(ui),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user