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 { wrapPrivateComponent } from '@utils'
|
||||||
import { MessageService } from '@api'
|
import { MessageService } from '@api'
|
||||||
|
|
||||||
|
import {LinkOutlined} from '@ant-design/icons'
|
||||||
import '@styles/message.css'
|
import '@styles/message.css'
|
||||||
|
|
||||||
const pageSize = 26
|
const pageSize = 26
|
||||||
@ -29,7 +30,11 @@ export const makeMessageColumns = (idWell) => [
|
|||||||
makeDateColumn('Дата', 'date', undefined, undefined, { width: '10rem' }),
|
makeDateColumn('Дата', 'date', undefined, undefined, { width: '10rem' }),
|
||||||
makeNumericColumn('Глубина, м', 'wellDepth', null, null, (depth, item) => (
|
makeNumericColumn('Глубина, м', 'wellDepth', null, null, (depth, item) => (
|
||||||
<Tooltip title={'Нажмите для перехода в архив'}>
|
<Tooltip title={'Нажмите для перехода в архив'}>
|
||||||
<Link style={{ color: 'inherit', textDecoration: 'underline' }} to={`/well/${idWell}/telemetry/archive?range=1800&start=${moment(item?.date).subtract(3, 'minute').local().toISOString()}`}>
|
<Link
|
||||||
|
style={{ color: 'inherit'}}
|
||||||
|
to={`/well/${idWell}/telemetry/archive?range=1800&start=${moment(item?.date).subtract(3, 'minute').local().toISOString()}`}>
|
||||||
|
<LinkOutlined />
|
||||||
|
|
||||||
{depth.toFixed(2)}
|
{depth.toFixed(2)}
|
||||||
</Link>
|
</Link>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
@ -1,9 +1,19 @@
|
|||||||
.event_message > td {
|
.event_message > td {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
padding: 1px !important;
|
padding: 1px 4px !important;
|
||||||
border-bottom: 1px !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 {
|
.event_message_off {
|
||||||
color: #505050;
|
color: #505050;
|
||||||
background: #b5b5b5;
|
background: #b5b5b5;
|
||||||
|
Loading…
Reference in New Issue
Block a user