修复环境变量tooltip

This commit is contained in:
hanhh 2021-07-03 18:38:02 +08:00
parent b1d55422ac
commit c1a3ac6e4d
2 changed files with 7 additions and 2 deletions

View File

@ -88,6 +88,7 @@ input:-webkit-autofill:active {
height: calc(100vh - var(--vh-offset, 0px) - 144px); height: calc(100vh - var(--vh-offset, 0px) - 144px);
} }
} }
.ql-container-wrapper { .ql-container-wrapper {
&.crontab-wrapper, &.crontab-wrapper,
&.log-wrapper { &.log-wrapper {
@ -108,4 +109,8 @@ input:-webkit-autofill:active {
height: calc(100vh - var(--vh-offset, 0px) - 176px); height: calc(100vh - var(--vh-offset, 0px) - 176px);
} }
} }
.ant-tooltip {
max-width: 250px !important;
}
} }

View File

@ -123,7 +123,7 @@ const Env = () => {
dataIndex: 'value', dataIndex: 'value',
key: 'value', key: 'value',
align: 'center' as const, align: 'center' as const,
width: '45%', width: '40%',
ellipsis: { ellipsis: {
showTitle: false, showTitle: false,
}, },
@ -164,7 +164,7 @@ const Env = () => {
render: (text: string, record: any, index: number) => { render: (text: string, record: any, index: number) => {
const isPc = width === '100%'; const isPc = width === '100%';
return ( return (
<Space size="middle"> <Space size="middle" style={{ paddingLeft: 8 }}>
<Tooltip title={isPc ? '编辑' : ''}> <Tooltip title={isPc ? '编辑' : ''}>
<a onClick={() => editEnv(record, index)}> <a onClick={() => editEnv(record, index)}>
<EditOutlined /> <EditOutlined />