260209_03_ENH: 필터 영역 디자인 통일
This commit is contained in:
@@ -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">
|
||||
<ChevronRight className="h-4 w-4 text-gray-700" />
|
||||
<span className="text-sm font-semibold text-gray-900 content-text-sm">
|
||||
{title}
|
||||
</span>
|
||||
{title}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="min-w-0 flex-1 overflow-x-auto px-2 py-2">
|
||||
<div className="flex w-max items-center gap-1 whitespace-nowrap">
|
||||
{options.map((opt) => {
|
||||
const active = isActive(opt.value);
|
||||
return (
|
||||
<Button
|
||||
key={opt.key}
|
||||
type="button"
|
||||
variant={active ? "default" : "secondary"}
|
||||
onClick={() => onSelect(opt.value)}
|
||||
className="h-8 shrink-0 rounded-sm px-3 text-sm font-semibold content-text-base"
|
||||
>
|
||||
{opt.label}
|
||||
</Button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<div className="flex min-w-0 flex-1 flex-wrap items-center gap-1 px-2 py-2">
|
||||
{options.map((opt) => {
|
||||
const active = isActive(opt.value);
|
||||
return (
|
||||
<Button
|
||||
key={opt.key}
|
||||
type="button"
|
||||
variant={active ? "default" : "secondary"}
|
||||
onClick={() => onSelect(opt.value)}
|
||||
className="h-8 shrink-0 rounded-sm px-3 text-sm font-semibold content-text-base"
|
||||
>
|
||||
{opt.label}
|
||||
</Button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -67,8 +67,8 @@ const TotalFilter = ({
|
||||
<div className="flex w-[140px] shrink-0 items-center gap-2 px-3 py-2">
|
||||
<ChevronRight className="h-4 w-4 text-gray-700" />
|
||||
<span className="text-sm font-semibold text-gray-900 content-text-sm">
|
||||
{row.variableName}
|
||||
</span>
|
||||
{row.variableName}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* 우측 옵션 */}
|
||||
|
||||
Reference in New Issue
Block a user