260209_03_ENH: 필터 영역 디자인 통일

This commit is contained in:
2026-02-09 16:44:24 +09:00
parent 0a81c1a748
commit 49ae6ff37e
2 changed files with 19 additions and 21 deletions

View File

@@ -44,27 +44,25 @@ function FilterLine({ title, options, isActive, onSelect }: Omit<RowDef, "id">)
<div className="flex w-[140px] shrink-0 items-center gap-2 px-3 py-2"> <div className="flex w-[140px] shrink-0 items-center gap-2 px-3 py-2">
<ChevronRight className="h-4 w-4 text-gray-700" /> <ChevronRight className="h-4 w-4 text-gray-700" />
<span className="text-sm font-semibold text-gray-900 content-text-sm"> <span className="text-sm font-semibold text-gray-900 content-text-sm">
{title} {title}
</span> </span>
</div> </div>
<div className="min-w-0 flex-1 overflow-x-auto px-2 py-2"> <div className="flex min-w-0 flex-1 flex-wrap items-center gap-1 px-2 py-2">
<div className="flex w-max items-center gap-1 whitespace-nowrap"> {options.map((opt) => {
{options.map((opt) => { const active = isActive(opt.value);
const active = isActive(opt.value); return (
return ( <Button
<Button key={opt.key}
key={opt.key} type="button"
type="button" variant={active ? "default" : "secondary"}
variant={active ? "default" : "secondary"} onClick={() => onSelect(opt.value)}
onClick={() => onSelect(opt.value)} className="h-8 shrink-0 rounded-sm px-3 text-sm font-semibold content-text-base"
className="h-8 shrink-0 rounded-sm px-3 text-sm font-semibold content-text-base" >
> {opt.label}
{opt.label} </Button>
</Button> );
); })}
})}
</div>
</div> </div>
</div> </div>
); );

View File

@@ -67,8 +67,8 @@ const TotalFilter = ({
<div className="flex w-[140px] shrink-0 items-center gap-2 px-3 py-2"> <div className="flex w-[140px] shrink-0 items-center gap-2 px-3 py-2">
<ChevronRight className="h-4 w-4 text-gray-700" /> <ChevronRight className="h-4 w-4 text-gray-700" />
<span className="text-sm font-semibold text-gray-900 content-text-sm"> <span className="text-sm font-semibold text-gray-900 content-text-sm">
{row.variableName} {row.variableName}
</span> </span>
</div> </div>
{/* 우측 옵션 */} {/* 우측 옵션 */}