liqd / adhocracy-plus

adhocracy+ is a SaaS platform to make digital democracy easy for everyone
https://adhocracy.plus/
GNU Affero General Public License v3.0
78 stars 20 forks source link

fix #2585 a4_candy_documents/chapter_detail: expand toc on all chapters #2618

Closed hom3mad3 closed 4 months ago

hom3mad3 commented 4 months ago

fixes https://github.com/liqd/adhocracy-plus/issues/2585

m4ra commented 4 months ago

@hom3mad3 this makes the content table always open, rather than keeping the state opened or closed depending on the user's action.The code before would keep the table closed if there were previous or next chapter, and open if it was first chapter. I don't think there is an easy solution to that actually with pure html. We may as well skip that issue for this release. @goapunk any thoughts?

hom3mad3 commented 4 months ago

@hom3mad3 this makes the content table always open, rather than keeping the state opened or closed depending on the user's action.The code before would keep the table closed if there were previous or next chapter, and open if it was first chapter. I don't think there is an easy solution to that actually with pure html. We may as well skip that issue for this release. @goapunk any thoughts?

it does load it open, but it can be collapsed

goapunk commented 4 months ago

@m4ra @hom3mad3 I think the always open by default version in this PR makes more sense but eventually that's for @TeaJayyy to decide I'd say