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 #790

Merged
merged 1 commit into from
Nov 15, 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
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
Loading