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

Adjust padding on main wrappers #576

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Adjust padding on main wrappers #576

wants to merge 3 commits into from

Conversation

Awesome-E
Copy link
Member

This should make scrollbars less cramped, and scrolling containers will now get cut off by the bottom of the page instead of by the padding

I know the scrollbars are still not perfect, but they should at least be improved, and the contents should be cut off by the page instead of "arbitrarily"

Screenshots

Before After
before after
Before After
image image

Test Plan

-[ ] Verify that changes look as expected both on the Roadmap and Search pages

This should make scrollbars less cramped, and scrolling containers will now get cut off by the bottom of the page instead of by the padding
@charlieweinberger
Copy link
Contributor

Not sure if I agree that these changes are better than what we currently have.

For the course/prof search scrollbar, the scrollbar is now right inbetween the course/prof list and the course/prof info, but since its the scrollbar for the list, it should visually be closer to the list. Also, if the scroll bar is going to be to the right of the search bar (as opposed to under it), then I believe the scroll bar should go to the top of the search bar, not start below it.
Screenshot 2025-01-30 at 11 19 25 AM

For the roadmap scrollbar, the first issue as above also applies here: the scrollbar should be visually closer to the roadmap years on the left than to the search area on the right. But now, the second issue from above is the opposite here: the scroll bar goes all the way to the top of the website, which it also should not to. It should again end at the same level as the top of the other divs next to it.
Screenshot 2025-01-30 at 11 25 27 AM

Another issue is the bottom of each scrollbar. Both scrollbars end at the bottom of the window, unlike previously. However, I'm not a big fan of this. I think that, similar to my idea above about where the top of the scrollbar should be, I think the bottom of the scrollbar should go to the bottom of the element, not the bottom of the window. I get that this is part of what you were trying to remove, but I'd argue that it shouldn't go to the bottom of the page because it's not the only thing being scrolled. Since we also have the course/prof info on the right, which is also scrollable but doesn't go to the bottom of the window, having the left element scroll to the bottom of the window doesn't make sense to me.
Screenshot 2025-01-30 at 11 38 08 AM

There's also some related changes that might be helpful:

For the course/prof search, if we're gonna make the user scroll anyways, do we really need the different pages? I say we have just one page, and when the user scrolls to the bottom of the page, we load in the next page automatically, instead of making them manually select the next page.
Screenshot 2025-01-30 at 11 29 57 AM

For the roadmap, it might be better to move the add year, import transcript, and import zot4plan schedule buttons to the top of the page. I get the logic behind the add year button being at the bottom, but the others dont need to be at the bottom, and having buttons below just doesn't make as much sense to me. This is definitely the least notable idea of any in this comment.
Screenshot 2025-01-30 at 11 32 31 AM

Another thing I'd potentially like to try is having the scroll bars below the search bar/blue header, respectively, but still to the right of the courses/profs/years.

@Awesome-E
Copy link
Member Author

Awesome-E commented Jan 30, 2025

the scroll bar goes all the way to the top of the website, which it also should not to

Both scrollbars end at the bottom of the window, unlike previously. However, I'm not a big fan of this. I think that, similar to my idea above about where the top of the scrollbar should be, I think the bottom of the scrollbar should go to the bottom of the element, not the bottom of the window

While this is true, I argue that it is far worse for the content itself to be cut off arbitrarily (see screenshots in PR desc) at the padding of the element. As far as I'm concerned, there is not a away around this.

do we really need the different pages

No, feel free to create an issue to replace click-based pagination with scroll-based pagination. out of scope of this PR

For the roadmap, it might be better to move the add year, import transcript, and import zot4plan schedule buttons to the top of the page

Yes, having it at the bottom was only the initial design. I agree that Importing is more concerned with the entire roadmap than the end of the roadmap; we just don't have a design for how this would go in the top yet.

Another thing I'd potentially like to try is having the scroll bars below the search bar/blue header, respectively, but still to the right of the courses/profs/years.

I think it's good that you're thinking about the scroll bars, and would be happy to talk more about it. Let me know what you think about balancing scroll bar position vs padding and content cutoff position. We can talk more about this at some point in the near future

it should visually be closer to the list

yeah it's weird that it was for me but not for you

Copy link
Contributor

@CadenLee2 CadenLee2 left a comment

Choose a reason for hiding this comment

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

In terms of objective testing, the changes are working for me.
I'm on Windows so the scrollbar naturally looks slightly different (see screenshot), but it works as expected and the page is not cut off.

image

In terms of opinion, I agree that the roadmap scrollbar shouldn't extend all the way to the top of the page, but I didn't actually notice/get disoriented by it unless I paid attention.

Otherwise, everything does feel fine, and I do agree with Charlie that scroll-based pagination makes a lot more sense (for a future issue).

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.

3 participants