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

Make correspondence headers sticky. #1747

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

dracos
Copy link
Member

@dracos dracos commented Jul 12, 2023

Relevant issue(s)

mysociety/alaveteli#4504

What does this do?

Makes the correspondence headers sticky so they're always visible as you scroll through the correspondence.

Why was this needed?

So that when you're reading some correspondence, you can always know if it's incoming or outgoing, who it's from and when it was sent.

Implementation notes

Wasn't sure if any bit of this would be in core rather than theme, but seemed to all fit nicely here anyway.

Screenshots

(before I fixed rounded corners)

Notes to reviewer

The rounded corners made it quite a bit more complicated because you don't want to see anything underneath the outside of the rounded corner. If you get rid of the rounded corners, most of it isn't needed.

Copy link
Member

@garethrees garethrees left a comment

Choose a reason for hiding this comment

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

So good! 🪄

I think we'd want to port this in to core, but happy to merge here to see how we find it for a while.

@dracos dracos force-pushed the sticky-correspondence-headers branch from a62a326 to f2ef6b9 Compare July 18, 2023 10:26
@lucascumsille
Copy link
Contributor

@dracos looks really great =)
Tested it on Safari, Chrome and Firefox.

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.

3 participants