mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-13 00:13:33 +08:00
- 修复通义千问百炼 Anthropic 兼容鉴权头与健康检查请求 - 拆分通义千问百炼通用与 Coding Plan 双入口,调整预设回填与模型策略 - 修复火山 Coding Plan 模型列表过滤逻辑,避免混入无关模型 - 统一 OpenAI 兼容供应商路径与模型列表处理,补充相关服务层测试 - 优化 AI 设置供应商卡片布局,统一高度并收紧文本展示 - 将聊天区模型校验提示改为输入框上方的内联提示卡,补充前端回归测试
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
import type { CSSProperties } from 'react';
|
|
|
|
export const PROVIDER_PRESET_CARD_HEIGHT = 96;
|
|
|
|
export const PROVIDER_PRESET_GRID_STYLE: CSSProperties = {
|
|
display: 'grid',
|
|
gridTemplateColumns: 'repeat(3, minmax(0, 1fr))',
|
|
gap: 6,
|
|
gridAutoRows: `${PROVIDER_PRESET_CARD_HEIGHT}px`,
|
|
alignItems: 'stretch',
|
|
};
|
|
|
|
export const PROVIDER_PRESET_CARD_BASE_STYLE: CSSProperties = {
|
|
padding: '12px 14px',
|
|
borderRadius: 12,
|
|
cursor: 'pointer',
|
|
transition: 'all 0.2s ease',
|
|
display: 'flex',
|
|
alignItems: 'flex-start',
|
|
gap: 10,
|
|
height: '100%',
|
|
minHeight: `${PROVIDER_PRESET_CARD_HEIGHT}px`,
|
|
boxSizing: 'border-box',
|
|
overflow: 'hidden',
|
|
};
|
|
|
|
export const PROVIDER_PRESET_CARD_CONTENT_STYLE: CSSProperties = {
|
|
minWidth: 0,
|
|
flex: 1,
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
};
|
|
|
|
export const PROVIDER_PRESET_CARD_DESCRIPTION_STYLE: CSSProperties = {
|
|
marginTop: 4,
|
|
display: '-webkit-box',
|
|
WebkitLineClamp: 2,
|
|
WebkitBoxOrient: 'vertical',
|
|
overflow: 'hidden',
|
|
};
|
|
|
|
export const PROVIDER_PRESET_CARD_TITLE_STYLE: CSSProperties = {
|
|
display: '-webkit-box',
|
|
WebkitLineClamp: 2,
|
|
WebkitBoxOrient: 'vertical',
|
|
overflow: 'hidden',
|
|
};
|