From f54b842d80d35d25dc3be4fdca8ea861483c9621 Mon Sep 17 00:00:00 2001 From: Oleksii Orel Date: Wed, 21 Aug 2019 15:37:51 +0300 Subject: [PATCH 1/2] fix styles for scrolling pages for UD Signed-off-by: Oleksii Orel --- dashboard/src/app/index.styl | 9 +++++++++ .../workspaces/create-workspace/create-workspace.styl | 3 +-- .../devfile-selector/devfile-selector.controller.ts | 2 ++ .../devfile-selector/devfile-selector.html | 7 +++++-- .../app/workspaces/list-workspaces/list-workspaces.styl | 5 +++++ 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/dashboard/src/app/index.styl b/dashboard/src/app/index.styl index 8d673b4f84d..33e1d57aae2 100644 --- a/dashboard/src/app/index.styl +++ b/dashboard/src/app/index.styl @@ -55,6 +55,7 @@ body font-family 'Open Sans' background-color $background-site-color min-width 600px + overflow hidden button, select, @@ -95,7 +96,15 @@ md-option:hover transition none !important .main-page + max-height 100vh min-width 320px + overflow hidden + div#main-content + height 100% + + @-moz-document url-prefix() + #main-content + max-height calc(100vh - 30px) .progress-line position absolute diff --git a/dashboard/src/app/workspaces/create-workspace/create-workspace.styl b/dashboard/src/app/workspaces/create-workspace/create-workspace.styl index 8b9d01a4af7..03f15776d54 100644 --- a/dashboard/src/app/workspaces/create-workspace/create-workspace.styl +++ b/dashboard/src/app/workspaces/create-workspace/create-workspace.styl @@ -18,8 +18,7 @@ md-content.create-workspace-content - background-color $very-light-grey-background-color !important - overflow auto + background-color $very-light-grey-background-color padding 15px .che-label-container-label-name diff --git a/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.controller.ts b/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.controller.ts index 345b04f1a54..f1c08f2f38c 100644 --- a/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.controller.ts +++ b/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.controller.ts @@ -24,6 +24,7 @@ export class DevfileSelectorController { private devfileRegistry: DevfileRegistry; private cheWorkspace: CheWorkspace; private devfiles: Array; + devfileOrderBy: string; onDevfileSelect: Function; selectedDevfile: any; @@ -33,6 +34,7 @@ export class DevfileSelectorController { constructor(devfileRegistry: DevfileRegistry, cheWorkspace: CheWorkspace) { this.devfileRegistry = devfileRegistry; this.cheWorkspace = cheWorkspace; + this.devfileOrderBy = 'displayName'; this.loadDevfiles(); } diff --git a/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.html b/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.html index 461f0264140..698785c7959 100644 --- a/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.html +++ b/dashboard/src/app/workspaces/create-workspace/devfile-selector/devfile-selector.html @@ -16,19 +16,22 @@ che-column-title=""> -
Date: Thu, 22 Aug 2019 12:42:05 +0300 Subject: [PATCH 2/2] add scrolling to the list of plugins and to the list of editors for UD Signed-off-by: Oleksii Orel --- .../workspace-editors/workspace-editors.html | 129 +++++++++-------- .../workspace-plugins/workspace-plugins.html | 131 ++++++++++-------- .../src/components/widget/list/che-list.styl | 24 ++++ 3 files changed, 163 insertions(+), 121 deletions(-) diff --git a/dashboard/src/app/workspaces/workspace-details/workspace-editors/workspace-editors.html b/dashboard/src/app/workspaces/workspace-details/workspace-editors/workspace-editors.html index 40f7e35f595..d616d9b81c6 100644 --- a/dashboard/src/app/workspaces/workspace-details/workspace-editors/workspace-editors.html +++ b/dashboard/src/app/workspaces/workspace-details/workspace-editors/workspace-editors.html @@ -1,68 +1,77 @@
- -
-
-
- - - - -
-
-
- - -
- -
-
-
- -
- - -
- -
- {{editor.displayName}} - ({{editor.publisher}} publisher) -
- -
- -
- -
- {{editor.description}} +
+
+
+ +
+
+
+ + + +
-
- + + + +
+ +
+
+
+ +
+ + +
+ +
+ {{editor.displayName}} + ({{editor.publisher}} publisher) +
+ +
+ +
+ +
+ {{editor.description}} +
+
+
+
+
+
+
- +
There are no editors. diff --git a/dashboard/src/app/workspaces/workspace-details/workspace-plugins/workspace-plugins.html b/dashboard/src/app/workspaces/workspace-details/workspace-plugins/workspace-plugins.html index 0bf53fce640..c0a364383e9 100644 --- a/dashboard/src/app/workspaces/workspace-details/workspace-plugins/workspace-plugins.html +++ b/dashboard/src/app/workspaces/workspace-details/workspace-plugins/workspace-plugins.html @@ -9,70 +9,79 @@ on-change="workspacePluginsController.onSearchChanged(query)">
- - -
-
-
- - - - -
-
-
- - -
- -
-
-
- -
- - -
- -
- {{plugin.displayName}} - ({{plugin.publisher}} publisher) -
- -
- -
- -
- {{plugin.description}} +
+
+
+ +
+
+
+ + + +
-
- + + + +
+ +
+
+
+ +
+ + +
+ +
+ {{plugin.displayName}} + ({{plugin.publisher}} publisher) +
+ +
+ +
+ +
+ {{plugin.description}} +
+
+
+
+
+
+
- +
No plugins found. diff --git a/dashboard/src/components/widget/list/che-list.styl b/dashboard/src/components/widget/list/che-list.styl index ca467718a89..76f871d01ca 100644 --- a/dashboard/src/components/widget/list/che-list.styl +++ b/dashboard/src/components/widget/list/che-list.styl @@ -8,3 +8,27 @@ overflow-y auto display block width 100% + +.che-scroll-list + background-color lighten($very-light-grey-color, 28%) + border-top 1px solid lighten($very-light-grey-color, 4%) + border-radius 2px + width 100% + & > div + position relative + margin-top 47px + che-box-shadow() + & > div + overflow-y auto + max-height 672px + .che-list-item + height 47px + .che-list-header + .che-list-header-additional + display none + .che-list-item-row + margin -47px 0 0 0 + .che-list-header-column > * + position absolute + line-height 47px + top -47px