-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#12288] Admin notifications page: Fix notifications table overflow #12386
[#12288] Admin notifications page: Fix notifications table overflow #12386
Conversation
Looking at these changes a day later, I think there is a better way to write this. If I'm understanding the code correctly, the SCSS file I edited should only style the
According to the documents, I think using the first method is more inline with how the project is written. I am interested to hear/read how others might feel! |
Hi @yujioshiro, thanks for the good research! I also prefer the first method, and I think you're right that it's more consistent with the rest of the project when compared to the second method. Could you also check how other tables deal with the overflow / horizontal scrolling issue? In particular, I think some of them apply a |
@weiquu Thank you! I looked at the behavior of other tables and you were right. I added the |
Hi @yujioshiro, thanks for the change! Do remember to update the snapshot tests. You can update the snapshots by running |
@weiquu Thank you! I saw some checks fail and was reading through the snapshot test documentation but wasn't too sure what to do. I've read it further and watched a couple videos and think I understand it more now, but I just want to confirm... When I check my snapshots to see if the update was done correctly, I check the And if it's correct, I can push the changes in the |
Hi @yujioshiro, I think your understanding is about right. For the checking of the update, when the snapshot test fails the first time, you should be able to see the differences between the snapshot file and the generated snapshot. Once you've verified that the differences are to be expected, you can press You can of course check the |
@weiquu Great, I redid the snapshot test and was able to see where it failed. I confirmed the only difference between the old and newly generated I also made sure to pull from the master branch before pushing my changes. I'm not sure if I missed something or it's because another branch was pulled into the master while the checks were being processed, but it looks like my branch is now out of date. What would be the best possible course of action? |
Hi @yujioshiro, thanks for the changes! I think some PRs were recently merged into the main branch, could you try pulling from it again? |
@weiquu Sure! I followed number 2 of step 3 of the process section of the documentation. Specifically, I used Option 1 (merge) to merge my branch and the newly advanced main branch. I should have asked this before I pushed my changes, but when it asks for a commit message for the merge, should I be writing a reason for the merge every time or is the default commit message good enough? |
Hi @yujioshiro, just the default commit message is fine! Thanks for asking (: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@weiquu LET'S GOOOOO! Thank you so much for all your help! Learned a lot. I looked at other PRs that have been closed recently and it looks like there is nothing else I need to do. But I just want to confirm that we just wait for this merge to be finalized (by someone with the correct perms) and then it's fully done, right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…verflow (TEAMMATES#12386) * Fix admin notifications table overflow * Fix admin notifications table overflow * Fix admin notifications table overflow * Fix admin notifications table overflow and run snapshot test
Fixes #12288
Outline of Solution
Issue: At small screen widths, the notifications table would become infinitely smaller and the contents inside would start to break.
Fix: I updated the css so that the notifications table's
min-width: 650px
and the div that the table is inside hasoverflow-x: scroll
ensuring the table never shrinks less than 650px and the user can scroll horizontally to receive all information in the notification.Here is a demo of the current behavior:
Here is the fixed behavior:
Here is the fixed behavior with multiple notifications: