fix: show only 'v' in sidebar with full version on hover tooltip
The full version string was pushing the sidebar too wide. Now displays just "v" with the full version (e.g. "v1.2.3") shown on hover via title attribute, for both mobile and desktop sidebar layouts. Fixes PAP-533 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -298,7 +298,7 @@ export function Layout() {
|
||||
<span className="truncate">Documentation</span>
|
||||
</a>
|
||||
{health?.version && (
|
||||
<span className="px-2 text-xs text-muted-foreground shrink-0">v{health.version}</span>
|
||||
<span className="px-2 text-xs text-muted-foreground shrink-0" title={`v${health.version}`}>v</span>
|
||||
)}
|
||||
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
|
||||
<Link
|
||||
@@ -351,7 +351,7 @@ export function Layout() {
|
||||
<span className="truncate">Documentation</span>
|
||||
</a>
|
||||
{health?.version && (
|
||||
<span className="px-2 text-xs text-muted-foreground shrink-0">v{health.version}</span>
|
||||
<span className="px-2 text-xs text-muted-foreground shrink-0" title={`v${health.version}`}>v</span>
|
||||
)}
|
||||
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
|
||||
<Link
|
||||
|
||||
Reference in New Issue
Block a user