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

Wagtail wishlist: Control column widths on table blocks #4258

Open
1 task
Tracked by #140
JonellaCulmer opened this issue Dec 15, 2020 · 2 comments
Open
1 task
Tracked by #140

Wagtail wishlist: Control column widths on table blocks #4258

JonellaCulmer opened this issue Dec 15, 2020 · 2 comments

Comments

@JonellaCulmer
Copy link
Contributor

JonellaCulmer commented Dec 15, 2020

What we're after: We should be able to adjust column widths to better fit the content within them.

Considerations:

  • Easy for wagtail users to use
  • Can column width adjust automatically?
  • Pre-set widths based on the content? Fixed options that someone can choose from?
  • Consider the new Wagtail typed-table block with customization to allow users to choose from 10%, 20$, 30% 0 etc width columns. @johnnyporkchops has some prototyped code saved in a local branch.
  • See second part of this comment below for possible short term quick solution

Completion criteria:

  • Intuitive formatting options implemented in table block for all applicable wagtail templates

Example table : https://www.fec.gov/legal-resources/enforcement/audit-reports/authorized-committee-audit-reports/kelly-for-congress-2016/
Before:
Screen Shot 2020-12-15 at 5.09.29 PM.png

After:
Screen Shot 2021-02-10 at 2 38 42 PM

@JonellaCulmer JonellaCulmer added this to the PI 13 innovation 2 and PI 14 planning milestone Dec 15, 2020
@JonellaCulmer JonellaCulmer changed the title Wagtail wish list item: Control column widths on table blocks Wagtail wishlist item: Control column widths on table blocks Dec 15, 2020
@JonellaCulmer JonellaCulmer changed the title Wagtail wishlist item: Control column widths on table blocks Wagtail wishlist: Control column widths on table blocks Dec 15, 2020
@dorothyyeager
Copy link
Contributor

Content team doesn't know how to do this but we'd love it to happen and we're happy to test.

@johnnyporkchops
Copy link
Contributor

johnnyporkchops commented Dec 21, 2021

Moving to PI 16 Innovation sprint while I continue researching, prototyping and testing the following:

For a short term solution that solves this problem for the particular table used as an example above(and others using that pattern) , we can change CSS for block-table table from 100% to auto. We also need to check how this will effect any other tables wrapped in block-table which includes any using table_block or custom_table_block.
See https://www.fec.gov/legal-resources/enforcement/audit-reports/authorized-committee-audit-reports/kelly-for-congress-2016/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🗄️ PI backlog
Development

No branches or pull requests

6 participants