style(테이블타입): 탭 스타일 Google 식 underline (#27)
Build & Deploy to K8s / build-and-deploy (push) Successful in 6m22s

johngreen → main: 탭 스타일 Google 식 underline 으로 변경
This commit was merged in pull request #27.
This commit is contained in:
2026-05-22 05:04:26 +00:00
@@ -1695,20 +1695,34 @@ export default function TableManagementPage() {
</div> </div>
) : ( ) : (
<Tabs defaultValue="columns" className="flex min-h-0 flex-1 flex-col"> <Tabs defaultValue="columns" className="flex min-h-0 flex-1 flex-col">
<TabsList className="h-8 w-fit shrink-0 self-start mx-4 mt-1"> <TabsList className="h-auto w-full shrink-0 justify-start gap-1 rounded-none border-b bg-transparent p-0">
<TabsTrigger value="columns" className="flex items-center gap-1.5 text-xs"> <TabsTrigger
<Columns3 className="h-3.5 w-3.5" /> value="columns"
className={cn(
"flex items-center gap-2 rounded-none border-b-2 border-transparent bg-transparent px-4 py-2.5 text-sm font-medium text-muted-foreground transition-colors",
"hover:text-foreground",
"data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-primary data-[state=active]:shadow-none",
)}
>
<Columns3 className="h-4 w-4" />
</TabsTrigger> </TabsTrigger>
<TabsTrigger value="references" className="flex items-center gap-1.5 text-xs"> <TabsTrigger
<Link2 className="h-3.5 w-3.5" /> value="references"
className={cn(
"flex items-center gap-2 rounded-none border-b-2 border-transparent bg-transparent px-4 py-2.5 text-sm font-medium text-muted-foreground transition-colors",
"hover:text-foreground",
"data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-primary data-[state=active]:shadow-none",
)}
>
<Link2 className="h-4 w-4" />
{(() => { {(() => {
const refCount = columns.filter((c) => const refCount = columns.filter((c) =>
["entity", "code", "category", "numbering"].includes(c.input_type), ["entity", "code", "category", "numbering"].includes(c.input_type),
).length; ).length;
return refCount > 0 ? ( return refCount > 0 ? (
<Badge variant="secondary" className="ml-1 h-4 px-1.5 text-[10px]"> <Badge variant="secondary" className="ml-1.5 h-5 px-1.5 text-[11px]">
{refCount} {refCount}
</Badge> </Badge>
) : null; ) : null;