feat(ui): refine about dialog

Use intrinsic modal sizing and present platform details in a balanced layout.\n\nRefs #450
This commit is contained in:
Hakan Seven committed 2026-08-04 15:53:34 +03:00
1 parent 2f86bfde8e
commit 429d2eb06b
3 files changed
+128 -77

No files matched your search

+3 -6
View File
@@ -54,12 +54,9 @@ impl OpenCADStudio {
pub(super) fn modal_content<'s>(&'s self) -> Option<Element<'s, Message>> {
let ex = self.modal_resize;
Some(match self.active_modal? {
super::super::ModalKind::About => automatic_flow(ex, |flow| {
container(crate::ui::window::about::view_window())
.width(flow.width)
.height(flow.height)
.into()
}),
super::super::ModalKind::About => {
automatic_flow(ex, crate::ui::window::about::view_window)
}
super::super::ModalKind::Shortcuts => {
sized_flow(
ex,