From de6d4f93780b5b9a63db8052503909a68def32d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E9=B9=B0?= <17kungfuboy@gmail.com> Date: Wed, 22 Jun 2022 16:02:07 +0800 Subject: [PATCH] feat: update style --- .../group/tree/api-group-tree.component.html | 99 +++++++++++-------- .../group/tree/api-group-tree.component.scss | 17 ++++ .../components/navbar/navbar.component.html | 78 ++++++++++----- .../components/navbar/navbar.component.scss | 21 ++++ .../components/setting/setting.component.html | 82 ++++++++++----- .../components/sidebar/sidebar.component.html | 2 +- .../components/sidebar/sidebar.component.scss | 2 - 7 files changed, 206 insertions(+), 95 deletions(-) diff --git a/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html b/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html index d894d53a2..2f4e32075 100644 --- a/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html +++ b/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.html @@ -1,38 +1,32 @@ -
- -
-
- - - - - - -
-
- - - - - - - -
-
-
+
+ +
+ +
+ + +
- +
@@ -45,10 +39,20 @@
- +
@@ -84,13 +88,18 @@
{{ node.origin.method - }} + }} {{ node.title }}
- - + +
    @@ -43,16 +44,41 @@

    {{ dataSourceText }}数据源

- + - + (click)="toggleMaximize()" + > - +
+
+
Download
+ + + +
diff --git a/src/workbench/browser/src/app/shared/components/navbar/navbar.component.scss b/src/workbench/browser/src/app/shared/components/navbar/navbar.component.scss index 8b6879bee..36274ec61 100644 --- a/src/workbench/browser/src/app/shared/components/navbar/navbar.component.scss +++ b/src/workbench/browser/src/app/shared/components/navbar/navbar.component.scss @@ -1,3 +1,23 @@ +.btn { + border-radius: 3px; + background-color: var(--BTN_PRIMARY_BG); + color: #fff; + font-size: 0.9em; + height: 30px; + cursor: pointer; +} +.icon { + width: 30px; + height: 30px; + font-size: 1.5em; + color: rgba(0,0,0,0.5); + cursor: pointer; + border-radius: 3px; + transition: all .4s ease; + &:hover { + background-color: rgba(0,0,0,0.05); + } +} .eo_navbar { -webkit-app-region: drag; position: sticky; @@ -5,6 +25,7 @@ z-index: 11; left: 0; top: 0; + padding: 0 8px; // background-color: var(--NAVBAR_BG); // color: var(--NAVBAR_TEXT); // border-bottom: 1px solid var(--NAVBAR_BORDER_BOTTOM); diff --git a/src/workbench/browser/src/app/shared/components/setting/setting.component.html b/src/workbench/browser/src/app/shared/components/setting/setting.component.html index cc448029c..baa76f86a 100644 --- a/src/workbench/browser/src/app/shared/components/setting/setting.component.html +++ b/src/workbench/browser/src/app/shared/components/setting/setting.component.html @@ -1,14 +1,19 @@ - +
  • 设置
  • -
  • 切换到{{ isRemote ? '本地' : '远程' }}
  • +
  • {{ isRemote ? '切换到本地' : '切换到远程' }}
@@ -17,8 +22,11 @@ - + {{ node.title }} @@ -27,47 +35,76 @@ - + {{ node.title }} -
+

{{ module.title }}

- {{module.properties[field]?.label }} + {{ module.properties[field]?.label }} -
-
+
- + - + formControlName="{{ field }}" + >{{ module.properties[field]?.description }} - - {{module.properties[field]?.description}} + + {{ module.properties[field]?.description }} @@ -77,7 +114,6 @@

{{ module.title }}

-
diff --git a/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.html b/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.html index 16e7649cc..d0498f2db 100644 --- a/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.html +++ b/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.html @@ -11,6 +11,6 @@ - {{ item.moduleName }} + {{ item.moduleName }}
diff --git a/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.scss b/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.scss index e204ffbb7..42127eb24 100644 --- a/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.scss +++ b/src/workbench/browser/src/app/shared/components/sidebar/sidebar.component.scss @@ -1,11 +1,9 @@ .eo_sidebar { - background-color: var(--SIDEBAR_BG); border-right: 1px solid var(--BORDER); overflow: auto; width: 90px; height: 100%; transition: width .3s cubic-bezier(.2,0,0,1) 0s; - } .eo_sidebar_shrink { width: 50px;