fix(web): mobile overflow in settings panels

- PanelToolbar: allow wrapping and tighten padding on small screens so the
  primary action (e.g. "创建 API 密钥") no longer runs off the dialog edge.
- ProviderCard header: let the provider name truncate and pin the model-count
  badge and right-side action group with shrink-0 so credits / + controls stay
  inside the card on narrow viewports.
This commit is contained in:
RockChinQ
2026-06-21 12:48:18 -04:00
parent b3848c9d05
commit 876e8bf804
2 changed files with 7 additions and 5 deletions
@@ -171,9 +171,11 @@ export default function ProviderCard({
/>
)}
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2">
<CardTitle className="text-base">{provider.name}</CardTitle>
<Badge variant="outline" className="text-xs">
<div className="flex items-center gap-2 min-w-0">
<CardTitle className="text-base truncate">
{provider.name}
</CardTitle>
<Badge variant="outline" className="text-xs shrink-0">
{t('models.modelsCount', { count: totalModels })}
</Badge>
</div>
@@ -193,7 +195,7 @@ export default function ProviderCard({
</p>
</div>
</div>
<div className="flex items-center gap-1 ml-2">
<div className="flex items-center gap-1 ml-2 shrink-0">
{isLangBotModels && accountType !== 'space' && (
<Button
variant="outline"