Skip to content

Commit

Permalink
Merge pull request #790 from scality/fix/ARTESCA-13815-temperature-to…
Browse files Browse the repository at this point in the history
…oltip

fix issue with Tooltip being cut
  • Loading branch information
xaf-scality authored Nov 15, 2024
2 parents a9b562d + dc60249 commit 2c42cfd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/react/databrowser/objects/ObjectListTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AutoSizer } from 'react-virtualized';
import { FixedSizeList } from 'react-window';
import InfiniteLoader from 'react-window-infinite-loader';
import { List } from 'immutable';
import { FormattedDateTime, PrettyBytes, Text } from '@scality/core-ui';
import { FormattedDateTime, Wrap, PrettyBytes, Text } from '@scality/core-ui';
import { convertRemToPixels } from '@scality/core-ui/dist/utils';
import { spacing } from '@scality/core-ui/dist/style/theme';
import styled from 'styled-components';
Expand Down Expand Up @@ -329,10 +329,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 2c42cfd

Please sign in to comment.