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; 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) {