From 7fb19619cf73b404e00ed047c7f83c67986148ba Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 27 Jun 2024 13:52:28 +0300 Subject: [PATCH] fix: modal shadow padding --- src/gui/views/modal.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/views/modal.rs b/src/gui/views/modal.rs index e233029..42fc37a 100644 --- a/src/gui/views/modal.rs +++ b/src/gui/views/modal.rs @@ -164,6 +164,7 @@ impl Modal { if View::is_desktop() { rect = rect.shrink(Root::WINDOW_FRAME_MARGIN - 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") .title_bar(false)