forked from ddrilling/asb_cloud_front
Исправлены стили страницы Сообщений
This commit is contained in:
parent
799fff7c0e
commit
eb9d85c1a4
@ -11,7 +11,7 @@ import { makeColumn, makeDateColumn, makeNumericColumn, makeNumericSorter, makeT
|
||||
import { wrapPrivateComponent } from '@utils'
|
||||
import { MessageService } from '@api'
|
||||
|
||||
import '@styles/message.css'
|
||||
import '@styles/message.less'
|
||||
|
||||
const pageSize = 26
|
||||
const { Search } = Input
|
||||
@ -103,14 +103,16 @@ const Messages = memo(() => {
|
||||
return (
|
||||
<>
|
||||
<div className={'filter-group'}>
|
||||
<h3 className={'filter-group-heading'}>Фильтр сообщений</h3>
|
||||
<h3 className={'head'}>Фильтр сообщений</h3>
|
||||
<div className={'body'}>
|
||||
<Select
|
||||
mode={'multiple'}
|
||||
allowClear
|
||||
mode={'multiple'}
|
||||
className={'type-filter'}
|
||||
placeholder={'Фильтр сообщений'}
|
||||
className={'filter-selector'}
|
||||
onChange={setCategories}
|
||||
value={categories}
|
||||
onChange={setCategories}>
|
||||
>
|
||||
{children}
|
||||
</Select>
|
||||
<RangePicker showTime onChange={(range) => setRange(range)} />
|
||||
@ -120,6 +122,7 @@ const Messages = memo(() => {
|
||||
onSearch={onChangeSearchString}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<LoaderPortal show={showLoader}>
|
||||
<Table
|
||||
columns={columns}
|
||||
|
@ -9,7 +9,7 @@ import { MessageService } from '@api'
|
||||
|
||||
import { makeMessageColumns } from '../Messages'
|
||||
|
||||
import '@styles/message.css'
|
||||
import '@styles/message.less'
|
||||
|
||||
export const ActiveMessagesOnline = memo(({ well: givenWell }) => {
|
||||
const [messages, setMessages] = useState([])
|
||||
|
@ -32,7 +32,7 @@ import SpinPicEnabled from '@images/SpinEnabled.png'
|
||||
import SpinPicDisabled from '@images/SpinDisabled.png'
|
||||
|
||||
import '@styles/monitoring.less'
|
||||
import '@styles/message.css'
|
||||
import '@styles/message.less'
|
||||
|
||||
const { Option } = Select
|
||||
|
||||
|
@ -140,9 +140,3 @@ html {
|
||||
tr.table_row_size {
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.filter-selector {
|
||||
width: 25%;
|
||||
margin-right: 5px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
18
src/styles/message.css → src/styles/message.less
Executable file → Normal file
18
src/styles/message.css → src/styles/message.less
Executable file → Normal file
@ -41,11 +41,25 @@
|
||||
|
||||
.filter-group {
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.filter-group-heading {
|
||||
& .head {
|
||||
margin: 5px auto;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
& .body {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
|
||||
& .type-filter {
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
& .filter-selector {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
td.ant-table-column-sort {
|
Loading…
Reference in New Issue
Block a user