@orsetra/shared-ui 1.0.62 → 1.0.63
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.
|
@@ -224,7 +224,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
224
224
|
|
|
225
225
|
{/* En-tête du menu principal sélectionné */}
|
|
226
226
|
{currentMenu && menuLabels[currentMenu] && (
|
|
227
|
-
<div className="px-4 py-3
|
|
227
|
+
<div className="px-4 py-3 border-ui-border">
|
|
228
228
|
<div className="flex items-center gap-2">
|
|
229
229
|
{currentMenu === "assets" && <Rocket className="h-4 w-4 text-interactive" />}
|
|
230
230
|
{currentMenu === "runtime" && <Package className="h-4 w-4 text-interactive" />}
|
|
@@ -4,28 +4,32 @@ import type { ReactNode } from "react"
|
|
|
4
4
|
|
|
5
5
|
interface PageHeaderProps {
|
|
6
6
|
title: string
|
|
7
|
+
description?: string
|
|
7
8
|
backLink?: string
|
|
8
9
|
actions?: ReactNode
|
|
9
10
|
statusNode?: ReactNode
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export function PageHeader({ title, backLink, actions, statusNode}: PageHeaderProps) {
|
|
13
|
+
export function PageHeader({ title, description, backLink, actions, statusNode}: PageHeaderProps) {
|
|
13
14
|
return (
|
|
14
|
-
<div className="
|
|
15
|
-
<div className="flex items-center justify-between gap-4">
|
|
15
|
+
<div className="mb-4 sm:mb-8">
|
|
16
|
+
<div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
|
|
16
17
|
<div className="flex items-center space-x-3 min-w-0">
|
|
17
18
|
{backLink && (
|
|
18
19
|
<Link href={backLink} className="flex-shrink-0">
|
|
19
|
-
<ArrowLeft className="h-
|
|
20
|
+
<ArrowLeft className="h-5 w-5 sm:h-6 sm:w-6 text-text-secondary" />
|
|
20
21
|
</Link>
|
|
21
22
|
)}
|
|
22
|
-
<div className="
|
|
23
|
-
<
|
|
24
|
-
|
|
23
|
+
<div className="min-w-0">
|
|
24
|
+
<div className="flex items-center space-x-3">
|
|
25
|
+
<h1 className="text-xl sm:text-2xl font-semibold text-text-primary truncate">{title}</h1>
|
|
26
|
+
{statusNode && <div className="mt-2 flex-shrink-0">{statusNode}</div>}
|
|
27
|
+
</div>
|
|
28
|
+
{description && <p className="text-sm sm:text-base text-text-secondary line-clamp-2">{description}</p>}
|
|
25
29
|
</div>
|
|
26
30
|
</div>
|
|
27
|
-
{actions && <div className="flex items-center space-x-2 flex-shrink-0">{actions}</div>}
|
|
31
|
+
{actions && <div className="flex items-center space-x-2 sm:space-x-4 flex-shrink-0">{actions}</div>}
|
|
28
32
|
</div>
|
|
29
33
|
</div>
|
|
30
34
|
)
|
|
31
|
-
}
|
|
35
|
+
}
|