fix: modal shadow padding

This commit is contained in:
ardocrat 2024-06-27 13:52:28 +03:00
parent 58802c4d0b
commit 7fb19619cf

View file

@ -164,6 +164,7 @@ impl Modal {
if View::is_desktop() { if View::is_desktop() {
rect = rect.shrink(Root::WINDOW_FRAME_MARGIN - 0.5); rect = rect.shrink(Root::WINDOW_FRAME_MARGIN - 0.5);
rect.min += egui::vec2(0.0, Root::WINDOW_TITLE_HEIGHT + 0.5); rect.min += egui::vec2(0.0, Root::WINDOW_TITLE_HEIGHT + 0.5);
rect.max.x += 0.5;
} }
egui::Window::new("modal_bg_window") egui::Window::new("modal_bg_window")
.title_bar(false) .title_bar(false)