mirror of https://github.com/kortix-ai/suna.git
Merge pull request #1215 from escapade-mckv/composio-1a
fix the text positioning in selected profile state
This commit is contained in:
commit
7bb74660c8
|
@ -599,7 +599,23 @@ export const ComposioConnector: React.FC<ComposioConnectorProps> = ({
|
||||||
<Label className="text-sm font-medium">Use Existing Profile</Label>
|
<Label className="text-sm font-medium">Use Existing Profile</Label>
|
||||||
<Select value={selectedProfileId} onValueChange={setSelectedProfileId}>
|
<Select value={selectedProfileId} onValueChange={setSelectedProfileId}>
|
||||||
<SelectTrigger className="w-full h-12 text-base">
|
<SelectTrigger className="w-full h-12 text-base">
|
||||||
<SelectValue placeholder="Select a profile..." />
|
<SelectValue placeholder="Select a profile...">
|
||||||
|
{selectedProfileId && (() => {
|
||||||
|
const selectedProfile = existingProfiles.find(p => p.profile_id === selectedProfileId);
|
||||||
|
return selectedProfile ? (
|
||||||
|
<div className="flex items-center gap-3">
|
||||||
|
{app.logo ? (
|
||||||
|
<img src={app.logo} alt={app.name} className="h-5 w-5 rounded-lg object-contain flex-shrink-0" />
|
||||||
|
) : (
|
||||||
|
<div className="w-5 h-5 rounded-lg bg-gradient-to-br from-primary/20 to-primary/10 flex items-center justify-center text-primary text-xs font-semibold flex-shrink-0">
|
||||||
|
{app.name.charAt(0)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<span className="text-sm font-medium truncate">{selectedProfile.profile_name}</span>
|
||||||
|
</div>
|
||||||
|
) : null;
|
||||||
|
})()}
|
||||||
|
</SelectValue>
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent className="w-full">
|
<SelectContent className="w-full">
|
||||||
{existingProfiles.map((profile) => (
|
{existingProfiles.map((profile) => (
|
||||||
|
|
|
@ -424,8 +424,8 @@ export const ComposioRegistry: React.FC<ComposioRegistryProps> = ({
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
{Array.from({ length: 6 }).map((_, i) => (
|
{Array.from({ length: 6 }).map((_, i) => (
|
||||||
<div key={i} className="flex items-center gap-3 px-3 py-2">
|
<div key={i} className="flex items-center gap-3 px-3 py-2">
|
||||||
<div className="w-4 h-4 bg-muted rounded" />
|
<Skeleton className="w-4 h-4 bg-muted rounded" />
|
||||||
<div className="flex-1 h-4 bg-muted rounded" />
|
<Skeleton className="flex-1 h-4 bg-muted rounded" />
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue