@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
- {tabBar && tabBar.length > 0 && (
93
- <nav
94
- className={`flex gap-0 overflow-x-auto -mx-4 sm:-mx-6 px-4 sm:px-6 ${
95
- tabBarPosition === "right" ? "justify-end" : "justify-start"
96
- }`}
97
- aria-label="Tabs"
98
- >
99
- {tabBar.map((tab) => {
100
- const Icon = tab.icon
101
- const isActive = activeTab === tab.id
102
- return (
103
- <Link
104
- key={tab.id}
105
- href={tab.href}
106
- className={`inline-flex items-center gap-2 px-5 py-2.5 text-sm font-medium transition-colors whitespace-nowrap ${
107
- isActive ? TAB_ACTIVE : TAB_INACTIVE
108
- }`}
109
- >
110
- {Icon && <Icon className="h-4 w-4" />}
111
- {tab.label}
112
- </Link>
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",