Skip to content

Commit 95c526f

Browse files
committed
mobile: add lots of top padding on mobile
and remove top panel Signed-off-by: William Casarin <[email protected]>
1 parent dbc56ac commit 95c526f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/app.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ fn render_panel(ctx: &egui::Context, app: &mut Damus, timeline_ind: usize) {
607607
}
608608

609609
fn render_damus_mobile(ctx: &egui::Context, app: &mut Damus) {
610-
render_panel(ctx, app, 0);
610+
//render_panel(ctx, app, 0);
611611

612612
#[cfg(feature = "profiling")]
613613
puffin::profile_function!();
@@ -618,8 +618,14 @@ fn render_damus_mobile(ctx: &egui::Context, app: &mut Damus) {
618618
}
619619

620620
fn main_panel(style: &Style) -> egui::CentralPanel {
621+
let inner_margin = egui::Margin {
622+
top: if crate::ui::is_mobile() { 40.0 } else { 0.0 },
623+
left: 0.0,
624+
right: 0.0,
625+
bottom: 0.0,
626+
};
621627
egui::CentralPanel::default().frame(Frame {
622-
inner_margin: Margin::same(0.0),
628+
inner_margin,
623629
fill: style.visuals.panel_fill,
624630
..Default::default()
625631
})

0 commit comments

Comments
 (0)