Make selected expertise tags compact in onboarding
All checks were successful
Build and Push Docker Image / build (push) Successful in 9m17s
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:
@@ -137,7 +137,7 @@ export function ExpertiseSelect({
|
|||||||
|
|
||||||
{/* Selected tags at the top */}
|
{/* Selected tags at the top */}
|
||||||
{value.length > 0 && (
|
{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) => {
|
{value.map((name) => {
|
||||||
const tag = getTag(name)
|
const tag = getTag(name)
|
||||||
const isLocked = isTagLocked(name)
|
const isLocked = isTagLocked(name)
|
||||||
@@ -146,7 +146,7 @@ export function ExpertiseSelect({
|
|||||||
key={name}
|
key={name}
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
className={cn(
|
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'
|
isLocked && 'opacity-75'
|
||||||
)}
|
)}
|
||||||
style={{
|
style={{
|
||||||
@@ -155,7 +155,7 @@ export function ExpertiseSelect({
|
|||||||
color: tag?.color || undefined,
|
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}
|
{name}
|
||||||
{!disabled && !isLocked && (
|
{!disabled && !isLocked && (
|
||||||
<button
|
<button
|
||||||
@@ -164,7 +164,7 @@ export function ExpertiseSelect({
|
|||||||
className="ml-0.5 rounded-full p-0.5 hover:bg-black/10 transition-colors"
|
className="ml-0.5 rounded-full p-0.5 hover:bg-black/10 transition-colors"
|
||||||
aria-label={`Remove ${name}`}
|
aria-label={`Remove ${name}`}
|
||||||
>
|
>
|
||||||
<X className="h-3 w-3" />
|
<X className="h-2.5 w-2.5" />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|||||||
Reference in New Issue
Block a user