mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user