Skip to content

Commit

Permalink
fix issue with Tooltip being cut
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Oct 23, 2024
1 parent 41dda73 commit f6c3e2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions src/react/databrowser/objects/ObjectListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ import { AutoSizer } from 'react-virtualized';
import { FixedSizeList } from 'react-window';
import InfiniteLoader from 'react-window-infinite-loader';
import { List } from 'immutable';
import { FormattedDateTime, Icon, PrettyBytes, Text } from '@scality/core-ui';
import {
FormattedDateTime,
Icon,
PrettyBytes,
Text,
Wrap,
} from '@scality/core-ui';
import { convertRemToPixels } from '@scality/core-ui/dist/utils';
import { spacing } from '@scality/core-ui';
import { useHistory, useParams } from 'react-router-dom';
Expand Down Expand Up @@ -190,7 +196,7 @@ export default function ObjectListTable({
if (original.isFolder) {
return (
<span>
<Icon name="Folder" />
<Icon style={{ marginRight: spacing.r4 }} name="Folder" />
<T.CellClick
onClick={handleCellClicked(bucketName, original.key)}
>
Expand Down Expand Up @@ -321,10 +327,10 @@ export default function ObjectListTable({
(location) => location.name === storageClass,
)?.isCold;
return (
<div>
{isObjectInColdStorage ? <ColdStorageIcon /> : ''}{' '}
<Wrap style={{ alignItems: 'center' }}>
{isObjectInColdStorage ? <ColdStorageIcon /> : <p></p>}
{storageClass === 'STANDARD' ? 'default' : storageClass}
</div>
</Wrap>
);
},
cellStyle: {
Expand Down
2 changes: 1 addition & 1 deletion src/react/ui-elements/ColdStorageIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ColdStorageTemperatureToolTip = () => {
return (
<IconHelp
placement="top"
overlayStyle={{ width: '24rem' }}
overlayStyle={{ textWrap: 'wrap', width: '24rem', textAlign: 'left' }}
tooltipMessage={
<>
The Temperature of this Location is Cold.
Expand Down

0 comments on commit f6c3e2f

Please sign in to comment.