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,22 +103,25 @@ const Messages = memo(() => {
|
||||
return (
|
||||
<>
|
||||
<div className={'filter-group'}>
|
||||
<h3 className={'filter-group-heading'}>Фильтр сообщений</h3>
|
||||
<Select
|
||||
mode={'multiple'}
|
||||
allowClear
|
||||
placeholder={'Фильтр сообщений'}
|
||||
className={'filter-selector'}
|
||||
value={categories}
|
||||
onChange={setCategories}>
|
||||
{children}
|
||||
</Select>
|
||||
<RangePicker showTime onChange={(range) => setRange(range)} />
|
||||
<Search
|
||||
className={'filter-selector'}
|
||||
placeholder={'Фильтр сообщений по тексту'}
|
||||
onSearch={onChangeSearchString}
|
||||
/>
|
||||
<h3 className={'head'}>Фильтр сообщений</h3>
|
||||
<div className={'body'}>
|
||||
<Select
|
||||
allowClear
|
||||
mode={'multiple'}
|
||||
className={'type-filter'}
|
||||
placeholder={'Фильтр сообщений'}
|
||||
onChange={setCategories}
|
||||
value={categories}
|
||||
>
|
||||
{children}
|
||||
</Select>
|
||||
<RangePicker showTime onChange={(range) => setRange(range)} />
|
||||
<Search
|
||||
className={'filter-selector'}
|
||||
placeholder={'Фильтр сообщений по тексту'}
|
||||
onSearch={onChangeSearchString}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<LoaderPortal show={showLoader}>
|
||||
<Table
|
||||
|
@ -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;
|
||||
}
|
||||
|
22
src/styles/message.css → src/styles/message.less
Executable file → Normal file
22
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 {
|
||||
margin: 5px auto;
|
||||
align-items: center;
|
||||
& .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