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

Columns not getting "col-auto"-class #123

Open
snake-soft opened this issue Oct 10, 2020 · 2 comments
Open

Columns not getting "col-auto"-class #123

snake-soft opened this issue Oct 10, 2020 · 2 comments

Comments

@snake-soft
Copy link

If I write "auto", some other text or nothing in the column size fields in structure mode it's the same behaviour:
In the Structure mode the Column is called "Column (auto)" but the html element is not getting the class "col-auto".

The only way i can center column content was to choose "leer" (empty) as column type, what means that the element gets not any col class.

The source of that is the model "Bootstrap4GridColumn" and its method "get_grid_values".
The method iterates over all the choices generated at the bottom of bootstrap4_grid.models.py and there are no col-auto entries.
Those dynamically generated model fields are Integers and therefore it's not possible to save values like 'auto'.

I would suggest to add a "auto" boolean for each grid size.

@crydotsnake
Copy link
Contributor

Do you still have the issue?

@fsbraun
Copy link
Member

fsbraun commented Mar 10, 2022

@snake-soft I have a proposal for the UI to allow for auto columns here: #127 (comment) I'd love to hear your input!

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

No branches or pull requests

3 participants