mobile: simplify is_mobile

we don't need context anymore

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-05-15 18:01:04 -07:00
parent 12a6c64778
commit dbc56ac098
6 changed files with 8 additions and 9 deletions

View File

@@ -207,7 +207,7 @@ impl<'a> Note<'a> {
let profile_key = profile.as_ref().unwrap().record().note_key();
let note_key = note_key.as_u64();
if is_mobile(ui.ctx()) {
if is_mobile() {
ui.add(ui::ProfilePic::new(&mut self.app.img_cache, pic));
} else {
let (rect, size) = ui::anim::hover_expand(