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

Improve the flow of the spacing on the watch cards using a whole bunch of nested (not subgrid) grids #71

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

Conversation

MTRNord
Copy link
Collaborator

@MTRNord MTRNord commented Oct 29, 2024

grafik

This is not perfect either but it seems to have better text flow than whats on main now that I had to untruncate the headers since those hid valuable information.

kinda helps #70 ?

cc review from @HarHarLinks appreciated (cant do it via github itself :|)

Copy link

cloudflare-workers-and-pages bot commented Oct 29, 2024

Deploying matrix-2024 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 96ba666
Status: ✅  Deploy successful!
Preview URL: https://0ea045e5.matrix-2024.pages.dev
Branch Preview URL: https://mtrnord-a-bunch-off-grids.matrix-2024.pages.dev

View logs

Copy link
Contributor

@HarHarLinks HarHarLinks left a comment

Choose a reason for hiding this comment

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

The result is clearly an improvement, I don't see any new issues with it.

Its a bit strange that this whitespace is not collapsing:
image

In a perfect world, in these situations, the description on the right would continue to fill the whitespace caused by the 3 line title on the left
image

@MTRNord
Copy link
Collaborator Author

MTRNord commented Nov 1, 2024

The result is clearly an improvement, I don't see any new issues with it.

Its a bit strange that this whitespace is not collapsing:
image

In a perfect world, in these situations, the description on the right would continue to fill the whitespace caused by the 3 line title on the left
image

Yeah I tried it but it seems like without javascript it's not possible. The css can either add the dots at the very end of the content and then does not respect if the overflow is cut off (so in these cases it wouldnt work) or it can do it after a specific number of lines (we do 3 here). Sadly there seems to be no way for a best of both Worlds with pure css and html :/

@@ -137,64 +137,72 @@
.talks-grid {
display: grid;
grid-template-columns: repeat(auto-fill, 358px);
grid-template-rows: repeat(auto-fit, 533px);
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does this 533 come from?

If I reduce it to say 490 (probably not the optimal number), it seems like my first comment is resolved
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was the number Firefox calculated for the card height of the old/deployed grid.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then I think we could probably diverge from it? Can you repro what I mean?

@HarHarLinks
Copy link
Contributor

The mobile version improved compared to main. The right margin is missing here:
image

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