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

Center content of destinations page #1078

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

Conversation

stveit
Copy link
Contributor

@stveit stveit commented Dec 10, 2024

Fixes #1079

@stveit stveit marked this pull request as draft December 10, 2024 13:46
@stveit stveit self-assigned this Dec 10, 2024
@stveit stveit marked this pull request as ready for review December 10, 2024 13:49
@stveit stveit force-pushed the htmx-destinations-centre-content branch from 5ba4172 to 0508a61 Compare December 10, 2024 14:04
Copy link

sonarcloud bot commented Dec 10, 2024

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.19%. Comparing base (103abb6) to head (0508a61).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1078   +/-   ##
=======================================
  Coverage   81.19%   81.19%           
=======================================
  Files         140      140           
  Lines        5074     5074           
=======================================
  Hits         4120     4120           
  Misses        954      954           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@podliashanyk podliashanyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start! 🙌
Although there are additional changes to be made in order to stabilize the width properties of the items in this flexbox. If destination collapse element is collapsed, it becomes very short. I would suggest to add following to the #form-list-div and form in _create_form.html: class="max-w-4xl w-full". This way we ensure that each item doesn't extend a max width of 56rem (896px), yet it will always try to extend to 896px if possible (because of w-full). This way we have a nice stable width which with a few extra tweaks (separate PR) would make destinations page responsive to different screen sizes.
I would also suggest to center contents of the create form and collapse-content, looks much prettier together with width changes suggested above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Centre the content of destinations HTMX page
3 participants