From 5202a945a251fdddbfdfe294d0b4f55c0234d52c Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 10 May 2026 14:28:23 +0100 Subject: [PATCH] Add hover title to PMG instance drawer resource name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx b/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx index 987bd7c4d..a72f1775b 100644 --- a/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx +++ b/frontend-modern/src/components/PMG/PMGInstanceDrawer.tsx @@ -238,7 +238,14 @@ export const PMGInstanceDrawer: Component = (props) => {
-
+
{asTrimmedString(props.resourceName) || resource()?.name || drawerPresentation.defaultResourceName}