fix(style): downloading popover

This commit is contained in:
jialin
2025-05-12 19:16:29 +08:00
parent 2416fd1c71
commit b13e7b89e2
3 changed files with 21 additions and 8 deletions
+9 -4
View File
@@ -40,7 +40,12 @@ export default function useChartConfig() {
tickLineColor: token.colorSplit, tickLineColor: token.colorSplit,
axislabelColor: token.colorTextTertiary, axislabelColor: token.colorTextTertiary,
gaugeBgColor: token.colorFillSecondary, gaugeBgColor: token.colorFillSecondary,
gaugeSplitLineColor: isDarkTheme ? '#999' : 'rgba(255, 255, 255, 1)', gaugeSplitLineColor: isDarkTheme
? 'rgba(255,255,255,.3)'
: 'rgba(255, 255, 255, 1)',
gaugeSplitLineColor2: isDarkTheme
? 'rgba(255,255,255,.5)'
: 'rgba(255, 255, 255, 1)',
colorBgContainerHover: isDarkTheme ? '#424242' : '#fff' colorBgContainerHover: isDarkTheme ? '#424242' : '#fff'
}; };
}, [userSettings.theme, isDarkTheme]); }, [userSettings.theme, isDarkTheme]);
@@ -188,11 +193,11 @@ export default function useChartConfig() {
} }
}, },
splitLine: { splitLine: {
distance: -6, distance: -5,
length: 6, length: 5,
lineStyle: { lineStyle: {
width: 1.5, width: 1.5,
color: chartColorMap.gaugeSplitLineColor color: chartColorMap.gaugeSplitLineColor2
} }
}, },
axisLabel: { axisLabel: {
@@ -141,11 +141,16 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
backend: 'Ascend MindIE', backend: 'Ascend MindIE',
releases: '', releases: '',
link: 'http://docs.gpustack.ai/latest/user-guide/inference-backends/#parameters-reference_2', link: 'http://docs.gpustack.ai/latest/user-guide/inference-backends/#parameters-reference_2',
version: 'v0.1.0' version: '1.0.0'
}; };
} }
return null; return {
backend: 'vox-box',
releases: 'https://github.com/gpustack/vox-box/releases',
link: '',
version: 'v0.0.13'
};
}, [backend]); }, [backend]);
const handleWorkerLabelsChange = useCallback( const handleWorkerLabelsChange = useCallback(
@@ -414,7 +419,7 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
onDelete={handleDeleteBackendParameters} onDelete={handleDeleteBackendParameters}
options={paramsConfig} options={paramsConfig}
description={ description={
backendParamsTips && ( backendParamsTips.link && (
<span style={{ marginLeft: 5 }}> <span style={{ marginLeft: 5 }}>
{intl.formatMessage( {intl.formatMessage(
{ id: 'models.form.backend_parameters.vllm.tips' }, { id: 'models.form.backend_parameters.vllm.tips' },
@@ -139,6 +139,7 @@ const RenderRayactorDownloading = (props: {
columns={downloadList} columns={downloadList}
dataSource={[...mainWorker, ...list]} dataSource={[...mainWorker, ...list]}
rowKey="worker_name" rowKey="worker_name"
theme="light"
></SimpleTabel> ></SimpleTabel>
</div> </div>
); );
@@ -160,8 +161,10 @@ const RenderWorkerDownloading = (props: {
<Tooltip <Tooltip
arrow={true} arrow={true}
overlayInnerStyle={{ overlayInnerStyle={{
width: 300 width: 300,
backgroundColor: 'var(--color-spotlight-bg)'
}} }}
overlayClassName="light-downloading-tooltip"
title={ title={
<RenderRayactorDownloading <RenderRayactorDownloading
severList={rayActors} severList={rayActors}