Skip to content

Add sticky div to Package details template - #1294

Merged
TG1999 merged 2 commits into
mainfrom
1263-package-details-sticky-div
Sep 11, 2023
Merged

Add sticky div to Package details template#1294
TG1999 merged 2 commits into
mainfrom
1263-package-details-sticky-div

Conversation

@johnmhoran

Copy link
Copy Markdown
Member

Reference: #1263

Reference: #1263

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

TG1999 commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

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

@johnmhoran

Copy link
Copy Markdown
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

TG1999 commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

@johnmhoran

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

@TG1999

TG1999 commented Sep 11, 2023

Copy link
Copy Markdown
Contributor

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

@TG1999 TG1999 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@johnmhoran

Copy link
Copy Markdown
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
@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