@orsetra/shared-ui 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88,32 +88,30 @@ export function DetailPageHeader({
|
|
|
88
88
|
)}
|
|
89
89
|
</div>
|
|
90
90
|
|
|
91
|
-
{/* Tab bar */}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
</nav>
|
|
116
|
-
)}
|
|
91
|
+
{/* Tab bar — always rendered to keep header height consistent */}
|
|
92
|
+
<nav
|
|
93
|
+
className={`flex gap-0 overflow-x-auto -mx-4 sm:-mx-6 px-4 sm:px-6 min-h-10 ${
|
|
94
|
+
tabBarPosition === "right" ? "justify-end" : "justify-start"
|
|
95
|
+
}`}
|
|
96
|
+
aria-label="Tabs"
|
|
97
|
+
>
|
|
98
|
+
{tabBar?.map((tab) => {
|
|
99
|
+
const Icon = tab.icon
|
|
100
|
+
const isActive = activeTab === tab.id
|
|
101
|
+
return (
|
|
102
|
+
<Link
|
|
103
|
+
key={tab.id}
|
|
104
|
+
href={tab.href}
|
|
105
|
+
className={`inline-flex items-center gap-2 px-5 py-2.5 text-sm font-medium transition-colors whitespace-nowrap ${
|
|
106
|
+
isActive ? TAB_ACTIVE : TAB_INACTIVE
|
|
107
|
+
}`}
|
|
108
|
+
>
|
|
109
|
+
{Icon && <Icon className="h-4 w-4" />}
|
|
110
|
+
{tab.label}
|
|
111
|
+
</Link>
|
|
112
|
+
)
|
|
113
|
+
})}
|
|
114
|
+
</nav>
|
|
117
115
|
|
|
118
116
|
</div>
|
|
119
117
|
</div>
|