@orsetra/shared-ui 1.10.0 → 1.10.2

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.
@@ -111,13 +111,16 @@ export function MainSidebarFlyout({
111
111
  <a
112
112
  key={qa.id}
113
113
  href={qa.href}
114
- className="flex items-center gap-x-3 px-2 py-2 border-l-4 border-transparent hover:bg-ui-background hover:border-interactive transition-colors"
114
+ className="flex items-start gap-x-3 px-2 py-2 border-l-4 border-transparent hover:bg-ui-background hover:border-interactive transition-colors"
115
115
  >
116
116
  {QAIcon
117
- ? <QAIcon className="h-4 w-4 flex-shrink-0 text-text-secondary" />
118
- : <span className="h-4 w-4 flex-shrink-0" />
117
+ ? <QAIcon className="h-4 w-4 flex-shrink-0 mt-0.5 text-text-secondary" />
118
+ : <span className="h-4 w-4 flex-shrink-0 mt-0.5" />
119
119
  }
120
- <p className="text-sm font-medium text-text-primary leading-snug truncate">{qa.label}</p>
120
+ <div className="min-w-0 flex-1">
121
+ <p className="text-sm font-medium text-text-primary leading-snug truncate">{qa.label}</p>
122
+ <p className="text-xs text-text-secondary truncate mt-0.5">{qa.href}</p>
123
+ </div>
121
124
  </a>
122
125
  )
123
126
  })}
@@ -27,8 +27,8 @@ export function QuickAccessTracker({ label, icon, enabled = true }: QuickAccessT
27
27
 
28
28
  useEffect(() => {
29
29
  if (!enabled || !label || !pathname) return
30
- addRef.current({ label, href: pathname, icon })
31
- // Re-track whenever the actual page changes
30
+ addRef.current({ label, href: window.location.href, icon })
31
+ // pathname triggers the effect on navigation; window.location.href captures the full URL
32
32
  // eslint-disable-next-line react-hooks/exhaustive-deps
33
33
  }, [pathname, label, icon, enabled])
34
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",