MSP-3325 update style in RolesContent, AllVersionsPage, UserEditor, Header and Modal
This commit is contained in:
1 parent
a22bbc6267
commit
2bea3d6a23
6 files changed
+45
-20
No files matched your search
@@ -93,7 +93,7 @@ const RolesContent = ({
|
||||
dataSource={permissions}
|
||||
pagination={{ pageSize: 10 }}
|
||||
scroll={{
|
||||
y: 'calc(100vh - 450px)'
|
||||
y: 'calc(100vh - 270px)'
|
||||
}}
|
||||
rowSelection={{
|
||||
selectedRowKeys: value,
|
||||
@@ -140,20 +140,22 @@ const RolesContent = ({
|
||||
/>
|
||||
</div>
|
||||
<Divider />
|
||||
<FormInput
|
||||
data-cy="roles-content__input__name"
|
||||
rules={{ required: ValidationRules.required }}
|
||||
label="Наименование роли"
|
||||
name="name"
|
||||
control={control}
|
||||
/>
|
||||
<FormInput
|
||||
data-cy="roles-content__input__external-group"
|
||||
disabled={!isExternalGroup}
|
||||
label="Группы ЕСК"
|
||||
name="externalGroup"
|
||||
control={control}
|
||||
/>
|
||||
<div className="roles-content__wrap-input">
|
||||
<FormInput
|
||||
data-cy="roles-content__input__name"
|
||||
rules={{ required: ValidationRules.required }}
|
||||
label="Наименование роли"
|
||||
name="name"
|
||||
control={control}
|
||||
/>
|
||||
<FormInput
|
||||
data-cy="roles-content__input__external-group"
|
||||
disabled={!isExternalGroup}
|
||||
label="Группы ЕСК"
|
||||
name="externalGroup"
|
||||
control={control}
|
||||
/>
|
||||
</div>
|
||||
{renderFormTable()}
|
||||
</form>
|
||||
</>
|
||||
|
||||
@@ -1,11 +1,30 @@
|
||||
@import "../../constants/style/styleConst";
|
||||
|
||||
.roles-content {
|
||||
padding: $basic-padding*2 $basic-padding*3;
|
||||
padding: $basic-padding*2 $basic-padding*3 0;
|
||||
min-width: 400px;
|
||||
height: 100%;
|
||||
|
||||
&__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&__wrap-input {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.ant-pagination {
|
||||
margin: 8px 0 !important;
|
||||
}
|
||||
|
||||
.ant-divider-horizontal {
|
||||
margin: 14px 0;
|
||||
}
|
||||
|
||||
.ant-form-item {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
@@ -108,6 +108,7 @@ const AllVersionsPage = () => {
|
||||
const renderActionsField = (_: unknown, record: VersionType) => {
|
||||
return (
|
||||
<div className="all-version-page__actions-field">
|
||||
<Button.Group className="button_group">
|
||||
<CanEdit>
|
||||
<Tooltip title="Установить выбранную версию">
|
||||
<Popconfirm
|
||||
@@ -144,6 +145,7 @@ const AllVersionsPage = () => {
|
||||
<Button danger icon={<DeleteOutlined />} />
|
||||
</Popconfirm>
|
||||
</CanEdit>
|
||||
</Button.Group>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
&__header {
|
||||
border-bottom: 1px solid $border-color;
|
||||
padding: $basic-padding *4 $basic-padding*3;
|
||||
padding: 22px 24px 0;
|
||||
|
||||
&__nav {
|
||||
display: flex;
|
||||
@@ -44,7 +44,7 @@
|
||||
&__content {
|
||||
&__wrap {
|
||||
overflow-x: scroll;
|
||||
height: calc(100vh - 200px);
|
||||
height: calc(100vh - 80px);
|
||||
}
|
||||
|
||||
.ant-form-item {
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
font-family: 'PT Sans', sans-serif;
|
||||
padding-right: 120px;
|
||||
width: 100%;
|
||||
padding-left: 28px;
|
||||
}
|
||||
&__text-closed {
|
||||
margin: auto;
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
}
|
||||
&__title {
|
||||
color: $grey;
|
||||
font-size: 17px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
&__content {
|
||||
padding: 10px;
|
||||
@@ -58,7 +60,6 @@
|
||||
|
||||
body.modal-open {
|
||||
overflow: hidden;
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user