forked from ddrilling/asb_cloud_front
nit. Edit messages style
This commit is contained in:
parent
65e665cf2c
commit
5e4cb3cce4
@ -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 />
|
||||
|
||||
{depth.toFixed(2)}
|
||||
</Link>
|
||||
</Tooltip>
|
||||
), '7rem'),
|
||||
makeColumn('Категория', 'categoryId', {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user