refactor: use Margin:ZERO

This commit is contained in:
Fernando López Guevara
2025-07-01 13:22:51 -03:00
parent 953848ff9a
commit cb5bd75236

View File

@@ -8,6 +8,7 @@ use crate::{
DataPathType, Directory, Images, NoteAction, NoteCache, RelayDebugView, ThemeHandler,
UnknownIds,
};
use egui::Margin;
use egui::ThemePreference;
use egui_winit::clipboard::Clipboard;
use enostr::RelayPool;
@@ -51,14 +52,8 @@ pub struct Notedeck {
/// Our chrome, which is basically nothing
fn main_panel(style: &egui::Style) -> egui::CentralPanel {
let inner_margin = egui::Margin {
top: 0,
left: 0,
right: 0,
bottom: 0,
};
egui::CentralPanel::default().frame(egui::Frame {
inner_margin,
inner_margin: Margin::ZERO,
fill: style.visuals.panel_fill,
..Default::default()
})