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

Add sticky div to Package details template #1294

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

johnmhoran
Copy link
Member

Reference: #1263

Reference: #1263

Signed-off-by: John M. Horan <johnmhoran@gmail.com>
@TG1999
Copy link
Contributor

TG1999 commented Sep 11, 2023

@johnmhoran thanks ++, can we have some before and after screengrabs for changes done by this PR ?

@johnmhoran
Copy link
Member Author

@TG1999 Here are before and after screenshots. I'll also update main and merge into my 1263 branch and push that shortly.

Before at top:

image

Before when scrolled:

image

After at top:

image

After when scrolled:

image

Reference: #1263

Signed-off-by: John M. Horan <johnmhoran@gmail.com>
@TG1999
Copy link
Contributor

TG1999 commented Sep 11, 2023

@johnmhoran
Copy link
Member Author

@TG1999 Well, with 1263-package-details-sticky-div checked out, in custom.css we have 96 instances of px being used, and 5 instances of px for widths in the template package_details.html.

I could take the time to calculate the rem equivalent (no idea how straightforward that process is), make the changes, then test the UI to check for any odd results -- I gather rem is relative rather than absolute so there likely will be visual changes as a result. Not sure that's a good use of my time right now as I'm trying to finally put my 1228 branch to bed but will turn to the px-rem work if that's what you and @pombredanne want me to focus on now. Please let me know.

@johnmhoran
Copy link
Member Author

Presumably I'd then also need to make the same sorts of changes in my 1228 branch, to the extent not covered in the sticky div branch, right?

@johnmhoran
Copy link
Member Author

@TG1999 Looking more broadly in the files, there seem to be several thousand px references. Change all of them to rem?

@TG1999
Copy link
Contributor

TG1999 commented Sep 11, 2023

@johnmhoran leave px to rem for now, it can be addressed separately

Copy link
Contributor

@TG1999 TG1999 left a comment

Choose a reason for hiding this comment

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

LGTM!

@johnmhoran
Copy link
Member Author

@TG1999 OK. But if we need to convert from px to rem then I do want to correct my use of px. Is there a relatively easy and sane way to do that conversion?

@TG1999 TG1999 merged commit 4e46cc3 into main Sep 11, 2023
9 checks passed
@TG1999 TG1999 deleted the 1263-package-details-sticky-div branch September 11, 2023 19:24
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

Successfully merging this pull request may close these issues.

2 participants