From fc4d71139a8ecea7c0b10b0ab75d5134843c45ac Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 14 Jan 2026 12:01:47 +0800 Subject: [PATCH] style: playground right side --- .eslintrc.js | 2 +- .prettierignore | 2 -- .stylelintrc.js | 2 +- src/assets/styles/common.less | 4 ++++ src/pages/playground/embedding.tsx | 2 +- src/pages/playground/images.tsx | 4 ++-- src/pages/playground/index.tsx | 2 +- src/pages/playground/rerank.tsx | 2 +- src/pages/playground/speech.tsx | 4 ++-- src/pages/playground/style/ground-llm.less | 2 +- src/pages/playground/video.tsx | 2 +- tsconfig.json | 1 - 12 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 20dcd087..555e77a0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,5 +12,5 @@ module.exports = { React: 'readonly', JSX: 'readonly' }, - ignorePatterns: ['public/static/', 'public/vs/**'] + ignorePatterns: ['public/static/'] }; diff --git a/.prettierignore b/.prettierignore index 7469c0f9..5a5b9f53 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,8 +3,6 @@ node_modules .umi-production public/static/*.js public/static/*.css -public/vs/*/*.css -public/vs/*/*.js src/components/icon-font/iconfont/iconfont.js src/components/icon-font/iconfont/*.css diff --git a/.stylelintrc.js b/.stylelintrc.js index 964df2f1..472edcce 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -3,5 +3,5 @@ module.exports = { rules: { 'selector-class-pattern': null }, - ignoreFiles: ['public/static/*.css', 'public/vs/**/*.css'] + ignoreFiles: ['public/static/*.css'] }; diff --git a/src/assets/styles/common.less b/src/assets/styles/common.less index 2da42536..15b35616 100644 --- a/src/assets/styles/common.less +++ b/src/assets/styles/common.less @@ -28,6 +28,10 @@ margin-left: 5px; } +.m-l-24 { + margin-left: 24px; +} + .m-l-4 { margin-left: 4px; } diff --git a/src/pages/playground/embedding.tsx b/src/pages/playground/embedding.tsx index ed5ac98f..82603bae 100644 --- a/src/pages/playground/embedding.tsx +++ b/src/pages/playground/embedding.tsx @@ -91,7 +91,7 @@ const PlaygroundEmbedding: React.FC = () => { , ]} diff --git a/src/pages/playground/images.tsx b/src/pages/playground/images.tsx index 18de6223..4afbe01f 100644 --- a/src/pages/playground/images.tsx +++ b/src/pages/playground/images.tsx @@ -137,7 +137,7 @@ const TextToImages: React.FC = () => { setActiveKey(key)} > @@ -170,7 +170,7 @@ const TextToImages: React.FC = () => { , ]} diff --git a/src/pages/playground/index.tsx b/src/pages/playground/index.tsx index 82820ea0..30894358 100644 --- a/src/pages/playground/index.tsx +++ b/src/pages/playground/index.tsx @@ -120,7 +120,7 @@ const Playground: React.FC = () => { setActiveKey(key)} > diff --git a/src/pages/playground/rerank.tsx b/src/pages/playground/rerank.tsx index ae70eccb..67700f18 100644 --- a/src/pages/playground/rerank.tsx +++ b/src/pages/playground/rerank.tsx @@ -95,7 +95,7 @@ const PlaygroundRerank: React.FC = () => { , ]} diff --git a/src/pages/playground/speech.tsx b/src/pages/playground/speech.tsx index da80380a..268d7fc1 100644 --- a/src/pages/playground/speech.tsx +++ b/src/pages/playground/speech.tsx @@ -174,7 +174,7 @@ const Playground: React.FC = () => { setActiveKey(key)} > @@ -207,7 +207,7 @@ const Playground: React.FC = () => { , ]} diff --git a/src/pages/playground/style/ground-llm.less b/src/pages/playground/style/ground-llm.less index 843df15b..74a52106 100644 --- a/src/pages/playground/style/ground-llm.less +++ b/src/pages/playground/style/ground-llm.less @@ -19,7 +19,7 @@ .box { width: 390px; - padding-inline: var(--layout-content-inlinepadding); + padding-inline: 24px; } &.collapsed { diff --git a/src/pages/playground/video.tsx b/src/pages/playground/video.tsx index 42561325..f45ac8d3 100644 --- a/src/pages/playground/video.tsx +++ b/src/pages/playground/video.tsx @@ -91,7 +91,7 @@ const PlaygroundRerank: React.FC = () => { , ]} diff --git a/tsconfig.json b/tsconfig.json index 4c4a2665..f00d0f9c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,6 +27,5 @@ "src/components/logs-viewer/parse-worker.ts", "src/components/image-editor/invert-worker.ts", "src/components/image-editor/offscreen-worker.ts" - // "src/pages/playground/config/embedding-worker.ts" ] }