From 6304d6d7c066d5f360a3332a8b9263cf9d43d76e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 12 Feb 2023 23:46:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:art:=20=E5=BE=AE=E8=B0=83=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E5=8A=A8=E7=94=BB=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/appearance/themes/daylight/theme.css | 4 ++-- app/appearance/themes/midnight/theme.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/appearance/themes/daylight/theme.css b/app/appearance/themes/daylight/theme.css index d690c93bb..b57815604 100644 --- a/app/appearance/themes/daylight/theme.css +++ b/app/appearance/themes/daylight/theme.css @@ -91,8 +91,8 @@ --b3-font-background13: var(--b3-theme-on-background); /* 动画效果 */ - --b3-transition: all .15s cubic-bezier(0, 0, .2, 1) 0ms; - --b3-width-transition: width .15s cubic-bezier(0, 0, .2, 1) 0ms; + --b3-transition: all .2s cubic-bezier(0, 0, .2, 1) 0ms; + --b3-width-transition: width .2s cubic-bezier(0, 0, .2, 1) 0ms; /* 阴影 */ --b3-point-shadow: 0 3px 6px rgba(140,149,159,0.15); diff --git a/app/appearance/themes/midnight/theme.css b/app/appearance/themes/midnight/theme.css index dd4b98dd8..b36bb07a9 100644 --- a/app/appearance/themes/midnight/theme.css +++ b/app/appearance/themes/midnight/theme.css @@ -91,8 +91,8 @@ --b3-font-background13: var(--b3-theme-on-background); /* 动画效果 */ - --b3-transition: all .15s cubic-bezier(0, 0, .2, 1) 0ms; - --b3-width-transition: width .15s cubic-bezier(0, 0, .2, 1) 0ms; + --b3-transition: all .2s cubic-bezier(0, 0, .2, 1) 0ms; + --b3-width-transition: width .2s cubic-bezier(0, 0, .2, 1) 0ms; /* 阴影 */ --b3-point-shadow: 0 3px 6px #010409; From b0cd23245c7de395a19754b17ad27dc3111a9d6c Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 12 Feb 2023 23:49:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:art:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=87=8D=E6=96=B0=E6=89=93=E5=BC=80=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E7=A7=BB=E9=99=A4=E7=9A=84=E5=B7=A5=E4=BD=9C=E7=A9=BA?= =?UTF-8?q?=E9=97=B4=20https://github.com/siyuan-note/siyuan/issues/7353?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/workspace.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/api/workspace.go b/kernel/api/workspace.go index 4fa5b78df..ce6f82fbb 100644 --- a/kernel/api/workspace.go +++ b/kernel/api/workspace.go @@ -134,17 +134,18 @@ func getMobileWorkspaces(c *gin.Context) { return } - var names []string + var paths []string for _, dir := range dirs { if dir.IsDir() { - if isInvalidWorkspacePath(filepath.Join(root, dir.Name())) { + absPath := filepath.Join(root, dir.Name()) + if isInvalidWorkspacePath(absPath) { continue } - names = append(names, dir.Name()) + paths = append(paths, absPath) } } - ret.Data = names + ret.Data = paths } func getWorkspaces(c *gin.Context) {