split is_mobile to is_narrow and is_oled
is_mobile doesn't really make sense for android tablets. We were overloading this variable to mean "is_narrow". What we really want is is_oled for mobile devices and is_narrow for if its phone-like. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -137,8 +137,8 @@ mod preview {
|
||||
}
|
||||
|
||||
impl DesktopSidePanelPreview {
|
||||
fn new(is_mobile: bool) -> Self {
|
||||
let app = test_data::test_app(is_mobile);
|
||||
fn new() -> Self {
|
||||
let app = test_data::test_app();
|
||||
DesktopSidePanelPreview { app }
|
||||
}
|
||||
}
|
||||
@@ -165,8 +165,8 @@ mod preview {
|
||||
impl<'a> Preview for DesktopSidePanel<'a> {
|
||||
type Prev = DesktopSidePanelPreview;
|
||||
|
||||
fn preview(cfg: PreviewConfig) -> Self::Prev {
|
||||
DesktopSidePanelPreview::new(cfg.is_mobile)
|
||||
fn preview(_cfg: PreviewConfig) -> Self::Prev {
|
||||
DesktopSidePanelPreview::new()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user