Merge branch 'MSP-4496_modal-style' into 'main'

MSP-4496 "Modal style"

See merge request isp/isp-admin-ui!54
This commit is contained in:
Анастасия Ануфриева committed 2024-12-04 06:19:05 +00:00
commit a8ae60cdde
7 files changed
+18 -9

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
## 0.18.4
- Правка стилей модальных окон
## 0.18.3
- Изменен репозиторий библиотеки isp-ui-kit
- Обновлена версия библиотеки isp-ui-kit
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "isp-admin-ui",
"private": true,
"version": "0.18.3",
"version": "0.18.4",
"type": "module",
"scripts": {
"start": "vite",
@@ -9,6 +9,8 @@ import { ConfigType } from '@pages/ModulesPage/module.type.ts'
import configServiceApi from '@services/configService.ts'
import './confirm-config-modal.scss'
interface ConfirmModalProps extends Omit<ModalPropsType, 'title' | 'children'> {
handleSaveClick: (upVersion?: number, unsafe?: boolean) => void
setBufConfig: Dispatch<SetStateAction<ConfigType | undefined>>
@@ -39,7 +41,7 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
onClose={onClose}
>
<Button
className="confirm-modal-btn danger"
className="confirm-btn danger"
type="primary"
danger
onClick={() => {
@@ -49,7 +51,7 @@ const ConfirmConfigModal: FC<ConfirmModalProps> = ({
>
Сохранить принудительно
</Button>
<Button className="confirm-modal-btn" type="primary" onClick={onConfirmHandler}>
<Button className="confirm-btn" type="primary" onClick={onConfirmHandler}>
Принять изменения
</Button>
</Modal>
@@ -0,0 +1,4 @@
.modal__content {
display: flex;
gap: 10px;
}
@@ -129,11 +129,12 @@
}
.modal__wrap {
min-height: 100px;
min-height: 110px;
}
.confirm-btn {
width: 190px;
width: auto;
min-width: 190px;
}
.error-data {
+1 -1
View File
@@ -2,7 +2,7 @@
border: none;
background: transparent;
box-shadow: none;
padding: 0 !important;
padding: 5px !important;
position: absolute;
top: 8px;
right: 8px;
+3 -3
View File
@@ -40,16 +40,16 @@
&__title {
color: $grey;
font-size: 17px;
padding-right: 20px;
padding: 0 10px;
}
&__content {
padding: 10px;
font-size: 14px;
color: #2c3e50;
overflow: auto;
display: flex;
justify-content: space-between;
}
&__footer {
padding: 0 10px;
display: flex;
justify-content: end;
margin-top: $basic-margin;