story: Fix story caes (#345)

- Remove WebView story.
- Fix dropdown size.
This commit is contained in:
Jason Lee 2024-10-15 14:21:47 +08:00 committed by GitHub
parent 3041d0020f
commit 2f4ee70f46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,7 @@ use std::{sync::Arc, time::Duration};
use story::{
ButtonStory, CalendarStory, DropdownStory, IconStory, ImageStory, InputStory, ListStory,
ModalStory, PopupStory, ProgressStory, ResizableStory, ScrollableStory, StoryContainer,
SwitchStory, TableStory, TextStory, TooltipStory, WebViewStory,
SwitchStory, TableStory, TextStory, TooltipStory,
};
use ui::{
button::{Button, ButtonStyled as _},
@ -228,7 +228,7 @@ impl StoryWorkspace {
Arc::new(StoryContainer::panel::<CalendarStory>(cx)),
Arc::new(StoryContainer::panel::<ResizableStory>(cx)),
Arc::new(StoryContainer::panel::<ScrollableStory>(cx)),
Arc::new(StoryContainer::panel::<WebViewStory>(cx)),
// Arc::new(StoryContainer::panel::<WebViewStory>(cx)),
],
None,
&dock_area,

View file

@ -216,7 +216,6 @@ impl Render for DropdownStory {
.child(
h_flex()
.w_full()
.max_w(px(640.))
.items_center()
.gap_4()
.child(self.country_dropdown.clone())