nit. Edit messages style

This commit is contained in:
ngfrolov 2022-06-16 11:31:53 +05:00
parent 65e665cf2c
commit 5e4cb3cce4
2 changed files with 19 additions and 4 deletions

View File

@ -10,6 +10,7 @@ import { makeColumn, makeDateColumn, makeNumericColumn, makeNumericSorter, makeT
import { wrapPrivateComponent } from '@utils'
import { MessageService } from '@api'
import {LinkOutlined} from '@ant-design/icons'
import '@styles/message.css'
const pageSize = 26
@ -29,9 +30,13 @@ export const makeMessageColumns = (idWell) => [
makeDateColumn('Дата', 'date', undefined, undefined, { width: '10rem' }),
makeNumericColumn('Глубина, м', 'wellDepth', null, null, (depth, item) => (
<Tooltip title={'Нажмите для перехода в архив'}>
<Link style={{ color: 'inherit', textDecoration: 'underline' }} to={`/well/${idWell}/telemetry/archive?range=1800&start=${moment(item?.date).subtract(3, 'minute').local().toISOString()}`}>
{depth.toFixed(2)}
</Link>
<Link
style={{ color: 'inherit'}}
to={`/well/${idWell}/telemetry/archive?range=1800&start=${moment(item?.date).subtract(3, 'minute').local().toISOString()}`}>
<LinkOutlined />
&nbsp;
{depth.toFixed(2)}
</Link>
</Tooltip>
), '7rem'),
makeColumn('Категория', 'categoryId', {

View File

@ -1,9 +1,19 @@
.event_message > td {
font-size: 14px;
padding: 1px !important;
padding: 1px 4px !important;
border-bottom: 1px !important;
}
.event_message .anticon{
display: none;
}
.event_message:hover a{
text-decoration: underline;
}
.event_message:hover .anticon{
display: inherit;
}
.event_message_off {
color: #505050;
background: #b5b5b5;