Commit e5bd2f20 by zhaochengxiang

模型简介调整

parent 0d6fb11e
...@@ -172,4 +172,24 @@ tr.drop-over-upward td { ...@@ -172,4 +172,24 @@ tr.drop-over-upward td {
.ReactVirtualized__Grid, .ReactVirtualized__List { .ReactVirtualized__Grid, .ReactVirtualized__List {
outline: none; outline: none;
} }
\ No newline at end of file
.tooltip-common {
max-width: 450px;
max-height: 700px;
.yy-popover-inner-content {
padding: 8px !important;
}
.yy-table-thead > tr > th, .yy-table-tbody > tr > td {
font-size: 13px !important;
padding: 4px 8px !important;
}
.yy-descriptions-item-label, .yy-descriptions-item-content {
color: #fff !important;
}
}
...@@ -71,9 +71,9 @@ const ModelNameColumn = (props) => { ...@@ -71,9 +71,9 @@ const ModelNameColumn = (props) => {
} }
return ( return (
<Popover <Tooltip
content={_textComponent} title={_textComponent}
overlayClassName='model-digest-popover' overlayClassName='tooltip-common'
onVisibleChange={(visible) => { onVisibleChange={(visible) => {
if (visible && !record.digest) { if (visible && !record.digest) {
dispatch({ dispatch({
...@@ -92,7 +92,7 @@ const ModelNameColumn = (props) => { ...@@ -92,7 +92,7 @@ const ModelNameColumn = (props) => {
<a onClick={()=>{detailItem(record);}}> <a onClick={()=>{detailItem(record);}}>
{text||''} {text||''}
</a> </a>
</Popover> </Tooltip>
); );
} }
...@@ -238,7 +238,7 @@ const ModelTable = (props) => { ...@@ -238,7 +238,7 @@ const ModelTable = (props) => {
sortDirections: ['ascend', 'descend'], sortDirections: ['ascend', 'descend'],
render: (text, _, __) => { render: (text, _, __) => {
return ( return (
<Tooltip title={text||''}> <Tooltip title={text||''} overlayClassName='tooltip-common'>
<span>{text||''}</span> <span>{text||''}</span>
</Tooltip> </Tooltip>
); );
......
...@@ -36,16 +36,6 @@ ...@@ -36,16 +36,6 @@
} }
} }
.model-digest-popover {
.yy-popover-inner-content {
padding: 8px !important;
}
.yy-table-thead > tr > th, .yy-table-tbody > tr > td {
font-size: 13px !important;
}
}
.excel-copy-descritpion { .excel-copy-descritpion {
.yy-descriptions-row > td { .yy-descriptions-row > td {
padding-bottom: 0px !important; padding-bottom: 0px !important;
......
...@@ -77,7 +77,7 @@ const PartitionCURD = (props) => { ...@@ -77,7 +77,7 @@ const PartitionCURD = (props) => {
ellipsis: true, ellipsis: true,
render: (text, _, __) => { render: (text, _, __) => {
return ( return (
<Tooltip title={text||''}> <Tooltip title={text||''} overlayClassName='tooltip-common'>
<span>{text||''}</span> <span>{text||''}</span>
</Tooltip> </Tooltip>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment