Add hover title to PMG instance drawer resource name

The PMG instance drawer header showed the resource name with `truncate`
but no title attribute, so a long PMG instance name (e.g. a long
hostname returned from the API) clipped without recourse. Mirror the
same pattern used elsewhere in the truncate-tooltip pass — derive
the displayed name once via the chain (resourceName ?? resource.name
?? defaultResourceName) and pass it both as the rendered text and the
title attribute.
This commit is contained in:
rcourtman
2026-05-10 14:28:23 +01:00
parent 818221b457
commit 5202a945a2
@@ -238,7 +238,14 @@ export const PMGInstanceDrawer: Component<PMGInstanceDrawerProps> = (props) => {
<Card padding="lg">
<div class="flex items-start justify-between gap-4">
<div class="min-w-0">
<div class="text-sm font-semibold text-base-content truncate">
<div
class="text-sm font-semibold text-base-content truncate"
title={
asTrimmedString(props.resourceName) ||
resource()?.name ||
drawerPresentation.defaultResourceName
}
>
{asTrimmedString(props.resourceName) ||
resource()?.name ||
drawerPresentation.defaultResourceName}