The company editing page should use the full width, in two columns on a wide screen #210
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Postulo/postulo#210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The company editing page (Companies → New and Edit,
jobs:company_createandjobs:company_update) is a narrow column centred on the screen. It should use the full width of the page and, on a wide screen, set its parts in two columns.What narrows it today
src/postulo/templates/jobs/company_form.htmlis capped twice:base.html:160caps<main>atmax-w-7xl(1280 px), unless the page empties themain_widthblock. The company list already empties it (#188); the form does not.company_form.html:7then wraps everything inmx-auto max-w-2xl(672 px).As a result, on a 2560-pixel monitor, a form with a lot in it is drawn in 672 pixels:
sm:grid-cols-[12rem_1fr_10rem_auto]) squeezed into that width, plus the What goes where list.The rule this touches
#188 wrote down grids use the whole screen; everything else keeps its measure. #198 then widened Your details, Settings and Server settings anyway, on the grounds that the frame is not the paragraph: the reading measure belongs on fields and text blocks, not on the whole page. This page is a form, so it needs the same decision stated for it, and the comment in
base.html(lines 152–159) should end up saying where the line now is.What a fix has to settle
main_widthincompany_form.htmland drop the innermax-w-2xl, keeping the 16-pixel gutters<main>already has.lg:orxl:) so that neither column is narrower than today's single one. Below it, one column exactly as now.order-*), with Save and Cancel after both columns.ms/me,start/end);tests/test_template_lint.pyfails on a physical side, and the layout has to mirror correctly right to left.contact_form.html,posting_form.htmland the othermax-w-2xlforms have the same shape. This issue is about the company page; whether the others follow should be decided here and filed separately, not done quietly as part of this.Checks
tests/e2e/test_accessibility.py) walks pages at several widths and languages; #165 and #167 found overflows exactly when widths changed. Add the company form at a wide viewport if it is not already visited there.npm run build:cssfor any new grid classes (the compiled stylesheet is committed).