From b4abdc9e10cff00024904c446574f23c3dcd9990 Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Mon, 1 Jul 2024 16:49:35 +0700 Subject: [PATCH 1/3] MSP-3550 fix padding for user-item in Menu in Layout --- src/components/Layout/layout.scss | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/Layout/layout.scss b/src/components/Layout/layout.scss index 33c2c0a..242388b 100644 --- a/src/components/Layout/layout.scss +++ b/src/components/Layout/layout.scss @@ -24,7 +24,7 @@ } .user-item { - + padding-left: 21px !important; & .ant-menu-submenu-arrow { display: none !important; } @@ -32,10 +32,6 @@ border-bottom: 1px solid var(--ant-color-border); border-radius: 0 !important; - & .ant-menu-submenu-title { - padding-left: 21px !important; - } - & .ant-menu-title-content { margin: 0 !important; padding-left: 17px !important; @@ -44,9 +40,7 @@ .ant-menu-inline-collapsed { & .user-item { - & .ant-menu-submenu-title { - padding-left: 24px !important; - padding-top: 5px !important; - } + padding-left: 24px !important; + padding-top: 5px !important; } } From 5c685c2c3d3592a0e14e29ecf3932585632d9a30 Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Mon, 1 Jul 2024 16:50:33 +0700 Subject: [PATCH 2/3] MSP-3550 add Layout from antd in LoginPage for dark theme --- src/constants/style/styleConst.scss | 4 ++-- src/pages/LoginPage/index.tsx | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/constants/style/styleConst.scss b/src/constants/style/styleConst.scss index a043921..fc9fc71 100644 --- a/src/constants/style/styleConst.scss +++ b/src/constants/style/styleConst.scss @@ -5,8 +5,8 @@ $text-size: 1rem; $text-size-header1: 1.7rem; $text-size-header2: 1.25rem; -$text-color-gray: var(--ant-primary-color); -$background-color: #F0F2F5; +$text-color-gray: var(--ant-layout-header-color); +$background-color: var(--ant-layout-light-sider-bg); $grey: #606060; $border-color: var(--ant-color-border); $error-red: #cf1322; diff --git a/src/pages/LoginPage/index.tsx b/src/pages/LoginPage/index.tsx index 01570c8..2ceb215 100644 --- a/src/pages/LoginPage/index.tsx +++ b/src/pages/LoginPage/index.tsx @@ -1,5 +1,5 @@ import { LockOutlined, UserOutlined } from '@ant-design/icons' -import { Button, Divider } from 'antd' +import { Button, Divider, Layout } from 'antd' import { AxiosError } from 'axios' import { FormComponents, useAuth } from 'isp-ui-kit' import { useForm } from 'react-hook-form' @@ -105,6 +105,7 @@ const LoginPage = () => { } return ( +

@@ -114,6 +115,7 @@ const LoginPage = () => { {renderInternalAuthForm()}

+
) } From 8d09c7b0407762b33a04a588fe1274a93a733b20 Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Mon, 1 Jul 2024 16:52:57 +0700 Subject: [PATCH 3/3] MSP-3550 up version to 0.13.1 --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9bd58e..2c6825e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.13.1 +- В LoginPage исправлен background для темной темы ## 0.13.0 - Добавлена темная тема ## 0.12.6 diff --git a/package.json b/package.json index 992dfea..38eefeb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "isp-admin-ui", "private": true, - "version": "0.13.0", + "version": "0.13.1", "type": "module", "scripts": { "start": "vite",