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:
parent
d06251981e
commit
84eace6877
@ -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 ? (
|
||||
|
Loading…
x
Reference in New Issue
Block a user