style: playground right side
This commit is contained in:
+1
-1
@@ -12,5 +12,5 @@ module.exports = {
|
|||||||
React: 'readonly',
|
React: 'readonly',
|
||||||
JSX: 'readonly'
|
JSX: 'readonly'
|
||||||
},
|
},
|
||||||
ignorePatterns: ['public/static/', 'public/vs/**']
|
ignorePatterns: ['public/static/']
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ node_modules
|
|||||||
.umi-production
|
.umi-production
|
||||||
public/static/*.js
|
public/static/*.js
|
||||||
public/static/*.css
|
public/static/*.css
|
||||||
public/vs/*/*.css
|
|
||||||
public/vs/*/*.js
|
|
||||||
src/components/icon-font/iconfont/iconfont.js
|
src/components/icon-font/iconfont/iconfont.js
|
||||||
src/components/icon-font/iconfont/*.css
|
src/components/icon-font/iconfont/*.css
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,5 +3,5 @@ module.exports = {
|
|||||||
rules: {
|
rules: {
|
||||||
'selector-class-pattern': null
|
'selector-class-pattern': null
|
||||||
},
|
},
|
||||||
ignoreFiles: ['public/static/*.css', 'public/vs/**/*.css']
|
ignoreFiles: ['public/static/*.css']
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,6 +28,10 @@
|
|||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.m-l-24 {
|
||||||
|
margin-left: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.m-l-4 {
|
.m-l-4 {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ const PlaygroundEmbedding: React.FC = () => {
|
|||||||
<Divider
|
<Divider
|
||||||
key="divider"
|
key="divider"
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
style={{ height: 24, marginInline: 16 }}
|
style={{ height: 16, marginInline: 16 }}
|
||||||
/>,
|
/>,
|
||||||
<ExtraContent key="extra-content" />
|
<ExtraContent key="extra-content" />
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ const TextToImages: React.FC = () => {
|
|||||||
<Segmented
|
<Segmented
|
||||||
options={optionsList}
|
options={optionsList}
|
||||||
size="middle"
|
size="middle"
|
||||||
className="m-l-40 font-600"
|
className="m-l-24 font-600"
|
||||||
value={activeKey}
|
value={activeKey}
|
||||||
onChange={(key) => setActiveKey(key)}
|
onChange={(key) => setActiveKey(key)}
|
||||||
></Segmented>
|
></Segmented>
|
||||||
@@ -170,7 +170,7 @@ const TextToImages: React.FC = () => {
|
|||||||
<Divider
|
<Divider
|
||||||
key="divider"
|
key="divider"
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
style={{ height: 24, marginInline: 16 }}
|
style={{ height: 16, marginInline: 16 }}
|
||||||
/>,
|
/>,
|
||||||
<ExtraContent key="extra-content" />
|
<ExtraContent key="extra-content" />
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ const Playground: React.FC = () => {
|
|||||||
<Segmented
|
<Segmented
|
||||||
options={optionsList}
|
options={optionsList}
|
||||||
size="middle"
|
size="middle"
|
||||||
className="m-l-40 font-600"
|
className="m-l-24 font-600"
|
||||||
value={activeKey}
|
value={activeKey}
|
||||||
onChange={(key) => setActiveKey(key)}
|
onChange={(key) => setActiveKey(key)}
|
||||||
></Segmented>
|
></Segmented>
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ const PlaygroundRerank: React.FC = () => {
|
|||||||
<Divider
|
<Divider
|
||||||
key="divider"
|
key="divider"
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
style={{ height: 24, marginInline: 16 }}
|
style={{ height: 16, marginInline: 16 }}
|
||||||
/>,
|
/>,
|
||||||
<ExtraContent key="extra-content" />
|
<ExtraContent key="extra-content" />
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ const Playground: React.FC = () => {
|
|||||||
<Segmented
|
<Segmented
|
||||||
options={optionsList}
|
options={optionsList}
|
||||||
size="middle"
|
size="middle"
|
||||||
className="m-l-40 font-600"
|
className="m-l-24 font-600"
|
||||||
value={activeKey}
|
value={activeKey}
|
||||||
onChange={(key) => setActiveKey(key)}
|
onChange={(key) => setActiveKey(key)}
|
||||||
></Segmented>
|
></Segmented>
|
||||||
@@ -207,7 +207,7 @@ const Playground: React.FC = () => {
|
|||||||
<Divider
|
<Divider
|
||||||
key="divider"
|
key="divider"
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
style={{ height: 24, marginInline: 16 }}
|
style={{ height: 16, marginInline: 16 }}
|
||||||
/>,
|
/>,
|
||||||
<ExtraContent key="extra-content" />
|
<ExtraContent key="extra-content" />
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 390px;
|
width: 390px;
|
||||||
padding-inline: var(--layout-content-inlinepadding);
|
padding-inline: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.collapsed {
|
&.collapsed {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ const PlaygroundRerank: React.FC = () => {
|
|||||||
<Divider
|
<Divider
|
||||||
key="divider"
|
key="divider"
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
style={{ height: 24, marginInline: 16 }}
|
style={{ height: 16, marginInline: 16 }}
|
||||||
/>,
|
/>,
|
||||||
<ExtraContent key="extra-content" />
|
<ExtraContent key="extra-content" />
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -27,6 +27,5 @@
|
|||||||
"src/components/logs-viewer/parse-worker.ts",
|
"src/components/logs-viewer/parse-worker.ts",
|
||||||
"src/components/image-editor/invert-worker.ts",
|
"src/components/image-editor/invert-worker.ts",
|
||||||
"src/components/image-editor/offscreen-worker.ts"
|
"src/components/image-editor/offscreen-worker.ts"
|
||||||
// "src/pages/playground/config/embedding-worker.ts"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user