From 5f4a3c55cc372176ae38c309aafbf211ef6ec2d2 Mon Sep 17 00:00:00 2001 From: txix Date: Wed, 3 Jul 2024 11:56:13 +0300 Subject: [PATCH] 2024-07-03 11:56:13: merge [main:b869fa47b3a1e857cb2ba90833e98d0b0c2e9b68]; --- CHANGELOG.md | 2 ++ package.json | 2 +- src/components/Layout/layout.scss | 12 +++--------- src/constants/style/styleConst.scss | 4 ++-- src/pages/LoginPage/index.tsx | 4 +++- 5 files changed, 11 insertions(+), 13 deletions(-) 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", 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; } } 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()}

+
) }