Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue with Tooltip being cut #788

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
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
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
Loading