Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';
import { Truncate } from '@patternfly/react-core';
import PropTypes from 'prop-types';

import InfoItem from './InfoItem';
Expand All @@ -8,7 +8,7 @@ import { itemIteratorId } from './helpers';
const StringInfoItem = ({ template, attr, tooltipText, mapAttr, elipsed }) => {
const inner = <span>{mapAttr(template, attr)}</span>;
const innerContent = elipsed ? (
<EllipsisWithTooltip placement="top">{inner}</EllipsisWithTooltip>
<Truncate content={inner} tooltipPosition="top" />
Copy link
Member

@ofedoren ofedoren Jul 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick question: why tooltipPosition is top instead of auto? BTW, Patternfly docs state that top is the default value anyway.

UPD: Nevermind me, it was top before.

) : (
inner
);
Expand Down