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 2026-08-04 15:53:34 +03:00
commit 429d2eb06b
3 changed files with 128 additions and 77 deletions

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,