-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/93 layout tutorials #104
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
base: dev-3.0
Are you sure you want to change the base?
Conversation
d250110
to
8d3a66e
Compare
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.
Small comments
src/components/TabGrid/GridCard.tsx
Outdated
const borderStyle: React.CSSProperties = { | ||
borderTop: isFirstRow ? "1px solid var(--border)" : undefined, | ||
borderLeft: isFirstColumn ? "1px solid var(--border)" : undefined, | ||
borderRight: "1px solid var(--border)", | ||
borderBottom: "1px solid var(--border)", | ||
} |
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.
This needs to be improved. You have a couple of ways to achieve this:
- You can just assign the border top and left to the GRID and not the actual cards. If you have not set any margin, this will work just fine and the border will look as part of the cards
- You can do the margin trick. Just set the margin to -1px on the side and top
- You should know how many column there are, so you can just use the
.grid > :nth-child(-n+3 (or 2)) {
amd set the border that way.
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.
Great ideas!
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.
went with a more restricted approach, where we limit the number of columns to 4, because it's quite difficult to do this truly dynamically (avoiding javascript etc).
1 and 2 work well, but if we have a 3-column grid and are only passing 1-2 links, there will be a border that stretches onto the empty 3rd column.
I went with 3, but hopefully looks better to the eyes. By limiting the number of grids (4) and creating custom selectors, we can effectively target these columns. Grok and Claude were no help in trying to find a better/optimal solution
IMPORTANT: Please do not create a Pull Request without creating an issue first.Any change needs to be discussed before proceeding.
Dependent on #90 Should be rebased then merged once 90 is in.
Closing issues
closes #93
...
Description
Adds tutorials grid
...
Changes