android: update to latest winit/egui/android-activity
so we can start fixing this shit Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -283,12 +283,12 @@ impl<'a, 'd> PostView<'a, 'd> {
|
||||
self.id_source.unwrap_or_else(|| egui::Id::new("post"))
|
||||
}
|
||||
|
||||
pub fn outer_margin() -> f32 {
|
||||
16.0
|
||||
pub fn outer_margin() -> i8 {
|
||||
16
|
||||
}
|
||||
|
||||
pub fn inner_margin() -> f32 {
|
||||
12.0
|
||||
pub fn inner_margin() -> i8 {
|
||||
12
|
||||
}
|
||||
|
||||
pub fn ui(&mut self, txn: &nostrdb::Transaction, ui: &mut egui::Ui) -> PostResponse {
|
||||
@@ -308,9 +308,9 @@ impl<'a, 'd> PostView<'a, 'd> {
|
||||
|
||||
if focused {
|
||||
frame = frame.shadow(egui::epaint::Shadow {
|
||||
offset: egui::vec2(0.0, 0.0),
|
||||
blur: 8.0,
|
||||
spread: 0.0,
|
||||
offset: [0, 0],
|
||||
blur: 8,
|
||||
spread: 0,
|
||||
color: stroke.color,
|
||||
});
|
||||
}
|
||||
@@ -327,8 +327,7 @@ impl<'a, 'd> PostView<'a, 'd> {
|
||||
context_selection = Frame::none()
|
||||
.show(ui, |ui| {
|
||||
ui.vertical(|ui| {
|
||||
let set_width = avail_size.x * 0.8;
|
||||
ui.set_max_width(set_width);
|
||||
ui.set_max_width(avail_size.x * 0.8);
|
||||
let resp = render_note_preview(
|
||||
ui,
|
||||
self.note_context,
|
||||
@@ -346,8 +345,8 @@ impl<'a, 'd> PostView<'a, 'd> {
|
||||
});
|
||||
}
|
||||
|
||||
Frame::none()
|
||||
.inner_margin(Margin::symmetric(0.0, 8.0))
|
||||
Frame::new()
|
||||
.inner_margin(Margin::symmetric(0, 8))
|
||||
.show(ui, |ui| {
|
||||
ScrollArea::horizontal().show(ui, |ui| {
|
||||
ui.with_layout(Layout::left_to_right(egui::Align::Min), |ui| {
|
||||
|
||||
Reference in New Issue
Block a user