-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Optimize Events Table #117
Conversation
✅ Deploy Preview for splendorous-kataifi-9ae281 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Something went wrong here with the table of contents. Looks like it's (partially) sorted alphabetically? |
Right! Didn't even look at the TOC 😅 ...if you like the general idea, I'll look into optimizing the TOC (also with overflow, just like the main nav) |
I'm not sure. I like the idea of making them linkable, but it doesn't look ... great. Having them in a compact table helped with orientation as you could see all of them at once. |
I see. More often then not I find myself browsing API documentation on my mobile phone rather than on a desktop computer these days, for example when I hang out at the swing on the playground... 😅 The proposed solution in this PR is just much more usable on smaller screens IMHO. So in this case, I like it a lot.
Usually, seeing everything at once tends to confuse me more than help me with orientation 😄 @gmrchk, do you have an opinion about this? |
Sorry, this last commit slipped in – no biggie to re-create it when this doesn't get merged. |
Would a responsive table be an alternative? I.e. collapsing it on small screens? Not sure if this can work across all tables in the docs, though. @media screen and (max-width: 45em) {
tr, th, td {
display: block;
}
tr {
padding: 1em;
border-top: 0 none;
}
th {
padding: 0;
}
td {
padding: 1em 0 0;
}
} |
What about being able to link directly to certain events? I can well imagine that this would be useful in quite a few support cases. |
True, it won't help with that 🫠 |
Maybe you are irritated by the code elements inside the headings? Or is it really the table? |
The For me, the ideal solution would be a table that collapses on mobile and has defined anchors for linking. That would probably require a custom markdown plugin, though. Then again, I think the current table is fine. Let's see if Georgy has an opinion on this! |
I also prefer the table view, to be honest; it's just much better structured and clear from that. Tables are terrible on mobile, so I also always love it when the table is well-reformatted for mobile into a better scrollable row-as-a-block thing, which is probably what the @daun's CSS is doing? |
Ok, you win 😄 ...I'll see what can be done so that we keep the table on desktop. |
I'll stay on this PR, since there where some other improvements made for the TOC as well. |
I have created an eleventy transform that injects anchor links in the events table with minimal adjustments required in the |
What do you guys think of the new solution? |
Oh, the new modifications went past my radar. I think we actually landed on the perfect solution here! Works great on mobile too. Is the current state fine for you? |
I'll approve this just-in-case 🪴 |
Yes I like it a lot as well :) Will merge now |
Closes #115
Description
Better to try it out then discussing at length :)
Converted the table of events to a linkable list. Already nice to be able to link to similar events from the list itself (e.g. "[...]differs from
pageLoaded
[...]")Direct Link: https://deploy-preview-117--splendorous-kataifi-9ae281.netlify.app/events/#list-of-all-events