mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
refactor: 优化 Dialog 1 布局 (问题 4)
- 移除重复的服务器统计信息 (已在标题显示) - 减少多余的空格和边距,使布局更紧凑 - 优化视觉层次,提升用户体验
This commit is contained in:
parent
9d3d51a283
commit
2b1088682c
1 changed files with 1 additions and 8 deletions
|
|
@ -90,13 +90,6 @@ export const ServerListStep: React.FC<ServerListStepProps> = ({
|
|||
|
||||
return (
|
||||
<Box flexDirection="column">
|
||||
{/* 服务器统计 */}
|
||||
<Box marginBottom={1}>
|
||||
<Text color={theme.text.secondary}>
|
||||
{servers.length} {servers.length === 1 ? t('server') : t('servers')}
|
||||
</Text>
|
||||
</Box>
|
||||
|
||||
{/* 分组服务器列表 */}
|
||||
{groupedServers.map((group, groupIndex) => (
|
||||
<Box key={group.source} flexDirection="column" marginBottom={1}>
|
||||
|
|
@ -109,7 +102,7 @@ export const ServerListStep: React.FC<ServerListStepProps> = ({
|
|||
</Text>
|
||||
)}
|
||||
</Text>
|
||||
<Box flexDirection="column" marginTop={1}>
|
||||
<Box flexDirection="column">
|
||||
{group.servers.map((server, itemIndex) => {
|
||||
const isSelected =
|
||||
groupIndex === currentPosition.groupIndex &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue