From b99cafd1137b2fd9731ddbeb906eb0392b5aff30 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 6 Jan 2021 12:11:14 +0100 Subject: [PATCH] Better sorting of schemas. --- .../contributors-page.component.html | 17 ++++---- .../settings/pages/roles/role.component.html | 39 +++++++++++++------ .../settings/pages/roles/role.component.scss | 4 ++ .../settings/pages/roles/role.component.ts | 4 ++ 4 files changed, 46 insertions(+), 18 deletions(-) diff --git a/frontend/app/features/settings/pages/contributors/contributors-page.component.html b/frontend/app/features/settings/pages/contributors/contributors-page.component.html index ef47064e6..4bbc46b68 100644 --- a/frontend/app/features/settings/pages/contributors/contributors-page.component.html +++ b/frontend/app/features/settings/pages/contributors/contributors-page.component.html @@ -29,14 +29,16 @@ - + + +
+ + {{ 'contributors.importHintg' | sqxTranslate }} {{ 'contributors.importButton' | sqxTranslate }} + +
-
- - {{ 'contributors.importHintg' | sqxTranslate }} {{ 'contributors.importButton' | sqxTranslate }} - -
@@ -80,7 +82,8 @@ - + diff --git a/frontend/app/features/settings/pages/roles/role.component.html b/frontend/app/features/settings/pages/roles/role.component.html index 16ea59ba6..d61da1182 100644 --- a/frontend/app/features/settings/pages/roles/role.component.html +++ b/frontend/app/features/settings/pages/roles/role.component.html @@ -115,17 +115,34 @@
{{ 'common.schemas' | sqxTranslate }}
-
- - +
+
+ + +
+
+ +
+
+ + +
diff --git a/frontend/app/features/settings/pages/roles/role.component.scss b/frontend/app/features/settings/pages/roles/role.component.scss index e7bd49220..8e56d150f 100644 --- a/frontend/app/features/settings/pages/roles/role.component.scss +++ b/frontend/app/features/settings/pages/roles/role.component.scss @@ -44,6 +44,10 @@ width: 42px; } +.custom-control-label { + max-width: 100%; +} + .text-force { color: $color-text; } diff --git a/frontend/app/features/settings/pages/roles/role.component.ts b/frontend/app/features/settings/pages/roles/role.component.ts index 94e29cdf8..08f8182ef 100644 --- a/frontend/app/features/settings/pages/roles/role.component.ts +++ b/frontend/app/features/settings/pages/roles/role.component.ts @@ -53,6 +53,10 @@ export class RoleComponent implements OnChanges { @ViewChild('addInput', { static: false }) public addPermissionInput: AutocompleteComponent; + public get halfSchemas() { + return Math.ceil(this.schemas.length / 2); + } + public descriptions = DESCRIPTIONS; public propertiesList = Settings.AppProperties;