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

Fix class table width & height #137

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

Fix class table width & height #137

wants to merge 2 commits into from

Conversation

jophy-ye
Copy link
Contributor

@jophy-ye jophy-ye commented Jan 31, 2025

Description

For some mysterious reason, the class table grid is overflowing. This hides class details that are shown when a row is clicked.

On viewpoint of certain sizes, the grid may not take up 100% of the width.

Note

I write "mysterious" because I read from their official docs that the <AgGridReact> is supposed to fit to the parent div's height and width. In our case, that div is a <Box> with height 320px and width 100%. <AgGridReact> ignores that... On the contrary, this page in the docs hints us to use style of <AgGridReact> which doesn't exist now (according to the Typescript spec). Hence, it is also possible that this is a bug with ag-grid (since we're using the latest 33.0.4 now) but unfortunately I don't have time to investigate...

Screenshots

螢幕截圖 2025-01-31 下午12 25 31 螢幕截圖 2025-01-31 下午12 25 51

Before v.s. After
(Safari 16.4, on my Apple M2 MacBook Pro, Ventura 13.3.1)

@cjquines
Copy link
Member

hm, i can't reproduce this on my browser; what browser are you using?

@jophy-ye
Copy link
Contributor Author

jophy-ye commented Jan 31, 2025

Very interesting… I’m on Mac Safari 16.4, and I double-checked on localhost and hydrant.mit.edu. If that is the case, it could well be a bug of ag-grid-react. I’m down to either close this PR or merge this hot fix for Safari users (I'm unsure about the number of such students🤔). thank you very much!

@jophy-ye
Copy link
Contributor Author

jophy-ye commented Jan 31, 2025

I double-checked in Chrome and Firefox on a Windows computer locally and at Hayden. The grid looks fine, just as expected. In fact, looking back, I noticed that I don't even have the "sort by column" toggle buttons, which makes a bug of ag-grid-react (on Webkit) more likely?
螢幕截圖 2025-01-31 下午2 57 34
hydrant.mit.edu on my Safari, captured just now.

@cjquines
Copy link
Member

cjquines commented Feb 1, 2025

this is potentially quite interesting… we should try upgrading ag-grid-react and see if it persists

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