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

deleted the div that conatined the actionbutton class in Model Admin template #6387

Conversation

Josh-Woodcock
Copy link
Contributor

Deleted the div that conatined the actionbutton class in the Model Admin template

It was creating styling issues in the Wagtail admin when I was using wagtail hooks to expose a model to the admin for moderatioon and export.

Before (w/ actionbutton)

Screenshot_2020-09-17 Wagtail - Village Stories

After (without the div with actionbutton class)

Screenshot_2020-09-17 Wagtail - Village Stories(1)

I had a look at adding the same class to the

{% if view.list_export %}

however it required additional styling to create space with the button above. I figured this solution would be simplest and most effective.

It was creating styling issues in the wagtailadmin.
@squash-labs
Copy link

squash-labs bot commented Sep 17, 2020

Manage this branch in Squash

Test this branch here: https://uomresearchitactionbutton-wagt-jo64f.squash.io

@thibaudcolas thibaudcolas added this to the some-day milestone Dec 2, 2020
Base automatically changed from master to main March 3, 2021 17:08
@jnns
Copy link
Contributor

jnns commented Dec 20, 2021

Thank you for fixing this issue @Josh-Woodcock! 🙏🏻

Does anything prevent this from being merged?

@gasman gasman removed this from the some-day milestone Mar 30, 2022
@lb- lb- self-requested a review April 13, 2022 13:53
lb- pushed a commit that referenced this pull request May 5, 2022
- It was creating styling issues in the wagtailadmin when list export was enabled
- ensure that all actions are contained within the actionbutton div
Copy link
Member

@lb- lb- left a comment

Choose a reason for hiding this comment

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

@Josh-Woodcock thanks so much for this contribution a long time ago.

Apologies that it did not get a review in a short time but we really appreciate the time taken to get this together.

The header layout has changed a bit so the eventual change including this is a bit different - see 8a4a6b4

Nonetheless, it should now be resolved and thanks for making your first contribution to Wagtail!

@lb-
Copy link
Member

lb- commented May 5, 2022

Merged in via 8a4a6b4

@lb- lb- closed this May 5, 2022
stevedya pushed a commit to stevedya/wagtail that referenced this pull request May 18, 2022
…6387)

- It was creating styling issues in the wagtailadmin when list export was enabled
- ensure that all actions are contained within the actionbutton div
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants