From eb9d85c1a46d899b45c9ce9642a99103ce36043f Mon Sep 17 00:00:00 2001 From: goodmice Date: Thu, 6 Oct 2022 11:47:48 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=81=D1=82=D0=B8=D0=BB=D0=B8=20=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=A1=D0=BE=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Telemetry/Messages.jsx | 37 ++++++++++--------- .../TelemetryView/ActiveMessagesOnline.jsx | 2 +- src/pages/Telemetry/TelemetryView/index.jsx | 2 +- src/styles/App.less | 6 --- src/styles/{message.css => message.less} | 22 +++++++++-- 5 files changed, 40 insertions(+), 29 deletions(-) rename src/styles/{message.css => message.less} (77%) mode change 100755 => 100644 diff --git a/src/pages/Telemetry/Messages.jsx b/src/pages/Telemetry/Messages.jsx index 7ad92e6..824e38d 100755 --- a/src/pages/Telemetry/Messages.jsx +++ b/src/pages/Telemetry/Messages.jsx @@ -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 ( <>
-

Фильтр сообщений

- - setRange(range)} /> - +

Фильтр сообщений

+
+ + setRange(range)} /> + +
{ const [messages, setMessages] = useState([]) diff --git a/src/pages/Telemetry/TelemetryView/index.jsx b/src/pages/Telemetry/TelemetryView/index.jsx index ca1bae7..86fd43d 100755 --- a/src/pages/Telemetry/TelemetryView/index.jsx +++ b/src/pages/Telemetry/TelemetryView/index.jsx @@ -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 diff --git a/src/styles/App.less b/src/styles/App.less index fa98cb8..c4399b5 100755 --- a/src/styles/App.less +++ b/src/styles/App.less @@ -140,9 +140,3 @@ html { tr.table_row_size { height: 10px; } - -.filter-selector { - width: 25%; - margin-right: 5px; - margin-left: 5px; -} diff --git a/src/styles/message.css b/src/styles/message.less old mode 100755 new mode 100644 similarity index 77% rename from src/styles/message.css rename to src/styles/message.less index f4e4e33..513d06f --- a/src/styles/message.css +++ b/src/styles/message.less @@ -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 {