Make selected expertise tags compact in onboarding
All checks were successful
Build and Push Docker Image / build (push) Successful in 9m17s

Reduced badge size (text-[11px], h-5, tighter padding/gaps) and capped
the selected tags container to max-h-20 with overflow scroll so they
no longer push the rest of the form off-screen on mobile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 22:34:51 +01:00
parent 1c68512598
commit 1ec2247295

View File

@@ -137,7 +137,7 @@ export function ExpertiseSelect({
{/* Selected tags at the top */}
{value.length > 0 && (
<div className="flex flex-wrap gap-2">
<div className="flex flex-wrap gap-1 max-h-20 overflow-y-auto">
{value.map((name) => {
const tag = getTag(name)
const isLocked = isTagLocked(name)
@@ -146,7 +146,7 @@ export function ExpertiseSelect({
key={name}
variant="secondary"
className={cn(
'gap-1.5 py-1 px-2 text-sm',
'gap-1 py-0 px-1.5 text-[11px] h-5 leading-tight',
isLocked && 'opacity-75'
)}
style={{
@@ -155,7 +155,7 @@ export function ExpertiseSelect({
color: tag?.color || undefined,
}}
>
{isLocked && <Lock className="h-3 w-3 mr-0.5" />}
{isLocked && <Lock className="h-2.5 w-2.5 mr-0.5" />}
{name}
{!disabled && !isLocked && (
<button
@@ -164,7 +164,7 @@ export function ExpertiseSelect({
className="ml-0.5 rounded-full p-0.5 hover:bg-black/10 transition-colors"
aria-label={`Remove ${name}`}
>
<X className="h-3 w-3" />
<X className="h-2.5 w-2.5" />
</button>
)}
</Badge>