1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-21 13:57:56 +03:00

M #~: fix text overflow (#2615)

This commit is contained in:
Jorge Miguel Lobo Escalona 2023-05-18 17:08:58 +02:00 committed by GitHub
parent d06251981e
commit 84eace6877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,20 +26,30 @@ import { useDialog } from 'client/hooks'
import { Translate } from 'client/components/HOC'
import { T } from 'client/constants'
const Column = (props) => (
<Stack
direction="row"
alignItems="center"
sx={{
'&:hover > .actions': { display: 'contents' },
'&': { overflow: 'visible !important' },
'& .slider > span[data-index="0"][aria-hidden="true"]': {
left: '0px !important',
},
}}
{...props}
/>
)
const Column = (props) => {
const { isEditing, ...restProps } = props
return (
<Stack
direction="row"
alignItems="center"
sx={{
'&:hover > .actions': { display: 'contents' },
'&': { ...(isEditing ? { overflow: 'visible !important' } : {}) },
'& .slider > span[data-index="0"][aria-hidden="true"]': {
left: '0px !important',
},
}}
{...restProps}
/>
)
}
Column.propTypes = {
isEditing: PropTypes.bool,
}
Column.displayName = 'Column'
const ActionWrapper = (props) => (
<Stack direction="row" component="span" className="actions" {...props} />
@ -128,7 +138,7 @@ const Attribute = memo(
{canCopy && <Actions.Copy name={name} value={name} />}
</ActionWrapper>
</Column>
<Column>
<Column isEditing={isEditing}>
{isEditing ? (
<>
{handleGetOptionList ? (