fix: align margin for info icon and description text#3386
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
📝 WalkthroughWalkthroughThis change standardizes and adjusts UI component spacing and sizing across several form-related components. It updates icon and text alignment in Changes
Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Thank you for following the naming conventions for pull request titles! 🙏 |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (2)
internal/ui/src/components/form/form-helpers.tsx(2 hunks)packages/hono/package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (7)
- GitHub Check: Test Go API Local / Test (Shard 3/8)
- GitHub Check: Test Go API Local / Test (Shard 4/8)
- GitHub Check: Test Go API Local / Test (Shard 5/8)
- GitHub Check: Test Go API Local / Test (Shard 1/8)
- GitHub Check: Test Go API Local / Test (Shard 2/8)
- GitHub Check: Build / Build
- GitHub Check: Test API / API Test Local
🔇 Additional comments (2)
packages/hono/package.json (1)
11-16: Formatting-only update looks good.Converting the
keywordsandfilesarrays to single-line representations is purely stylistic and has no impact on functionality.internal/ui/src/components/form/form-helpers.tsx (1)
53-59: I’ll inspect the surrounding context in form-helpers.tsx to verify if there’s a parentflex gap-2and how margins are applied:#!/bin/bash # Locate the file and print its first 200 lines for context file=$(fd form-helpers.tsx) echo "Found file: $file" sed -n '1,200p' "$file"
|
To align them with checkboxes, see https://linear.app/unkey/issue/ENG-1846/fix-size-and-issue-of-info-icon-in-formcheckbox |
|
I’ll check tomorrow morning |
|
@chronark I think i noticed that and fixed it in somewhere else lemme see the PRs |
|
ah damn |
|
Still not exactly 100% aligned, but if we make the checkboxer closer to label it will cramp things up or if we make info and text further apart it will look weird |
|
wait this is not fixed though |
|
see my text above |
|
what’s wrong with mike’s solution? |
|
if we can make the checkbox smaller then we can align it perfectly |
|
just add a div around the icon with the same size of the checkbox and center the icon inside |
|
this SS is from preview branch. info and text looks too separated |
|
the middle one looks fine |
|
yeah probably mike forgot to change selects spacing 😄 |
|
either way, what are we going to do here?
|
|
okay i'll let mike work on this and we'll be in touch |
|
:ty: |
|
im closing my pr |
|
@MichaelUnkey let's sync for this |
…-fix-size-and-issue-of-info-icon-in-formcheckbox
…x' of https://github.com/unkeyed/unkey into eng-1846-fix-size-and-issue-of-info-icon-in-formcheckbox
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
internal/ui/src/components/form/form-helpers.tsx(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (12)
- GitHub Check: Test Go API Local / Test (Shard 7/8)
- GitHub Check: Test Go API Local / Test (Shard 2/8)
- GitHub Check: Test Go API Local / Test (Shard 3/8)
- GitHub Check: Build / Build
- GitHub Check: Test API / API Test Local
- GitHub Check: Test Packages / Test ./packages/cache
- GitHub Check: Test Packages / Test ./packages/nextjs
- GitHub Check: Test Packages / Test ./internal/resend
- GitHub Check: Test Packages / Test ./packages/api
- GitHub Check: Test Packages / Test ./internal/clickhouse
- GitHub Check: autofix
- GitHub Check: Analyze (javascript-typescript)
…-fix-size-and-issue-of-info-icon-in-formcheckbox


What does this PR do?
Fixes # (issue)
If there is not an issue for this, please create one first. This is used to tracking purposes and also helps use understand why this PR exists
Type of change
How should this be tested?
Checklist
Required
pnpm buildpnpm fmtconsole.logsgit pull origin mainAppreciated
Summary by CodeRabbit
Style
Refactor