Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvc/view: Ensure fields stay aligned relatively to another when headers are used in forms #8364

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Monviech
Copy link
Member

@Monviech Monviech commented Feb 20, 2025

This fixes an issue where introducing headers in forms will botch the alignment of fields because they all spawn their own table. Using relative sizes in the table and colgroup fixes this issue.

This also improves responsiveness of the modal.

Bonus: This also improved how form modals render on mobile devices.

@Monviech Monviech added the cleanup Low impact changes label Feb 20, 2025
@Monviech Monviech requested review from fichtner and swhite2 February 20, 2025 14:51
@Monviech Monviech self-assigned this Feb 20, 2025
@Monviech Monviech force-pushed the form-dialog-alignment branch from c8e0f40 to 812175b Compare February 21, 2025 07:56
@fichtner
Copy link
Member

I'm a bit skeptical having dealt with % width whac-a-mole code changes over the last decade :/

… modal-dialog and form-inline exist in the same view (e.g. dnsmasq).
…n msgzone_width is defined (e.g. in Intrusion Detection)
@Monviech
Copy link
Member Author

I would like the opportunity to whack the mole too :D

@Monviech Monviech force-pushed the form-dialog-alignment branch from 9242347 to 431544b Compare February 21, 2025 15:17
@Monviech
Copy link
Member Author

Needed to force push this since I accidentally pushed something else in here that belongs to another branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Low impact changes
Development

Successfully merging this pull request may close these issues.

2 participants