-
Notifications
You must be signed in to change notification settings - Fork 2.1k
client/web: small tweaks for small screens #10463
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
Conversation
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 from code, left a couple questions because I don't have a local instance where I can test myself.
client/web/src/components/app.tsx
Outdated
| <WebClient auth={auth} newSession={newSession} /> | ||
| )} | ||
| </main> | ||
| <div className="px-2"> |
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.
Why not put px-2 on the body?
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.
no great reason. I was thinking about keeping all of the styling within the App component, but I guess that doesn't really buy us anything. moved to body.
| return ( | ||
| <> | ||
| <div className="flex justify-between items-center mb-12"> | ||
| <div className="flex justify-between items-center mb-9 md:mb-12"> |
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.
Do you need both justify-between and items-center?
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.
yes, they control spacing on different axes.
Add left and right padding around entire client so that the cards don't run into the side of the screen. Also tighten up vertical spacing in couple of places. Updates #10261 Signed-off-by: Will Norris <will@tailscale.com>
81a8496 to
65549d0
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.
Code lgtm
Add left and right padding around entire client so that the cards don't run into the side of the screen. Also tighten up vertical spacing around header.
There's probably more we could do, like lessen the side padding inside the cards, but I'm just starting with the most glaring issues.
Updates #10261