mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-23 19:05:16 +02:00
refactor: improve styling of MemberRow component and clean up agent tools imports
This commit is contained in:
parent
8fd52d340f
commit
1169b43196
2 changed files with 5 additions and 3 deletions
|
|
@ -518,7 +518,9 @@ function MemberRow({
|
||||||
{member.user_avatar_url && (
|
{member.user_avatar_url && (
|
||||||
<AvatarImage src={member.user_avatar_url} alt={displayName} />
|
<AvatarImage src={member.user_avatar_url} alt={displayName} />
|
||||||
)}
|
)}
|
||||||
<AvatarFallback className="text-sm">{initials}</AvatarFallback>
|
<AvatarFallback className="bg-popover text-sm text-popover-foreground">
|
||||||
|
{initials}
|
||||||
|
</AvatarFallback>
|
||||||
</Avatar>
|
</Avatar>
|
||||||
<div className="min-w-0">
|
<div className="min-w-0">
|
||||||
<p className="font-medium text-sm truncate select-text">{displayName}</p>
|
<p className="font-medium text-sm truncate select-text">{displayName}</p>
|
||||||
|
|
@ -543,7 +545,7 @@ function MemberRow({
|
||||||
type="button"
|
type="button"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-auto gap-1.5 px-0 py-0 text-sm text-muted-foreground hover:bg-transparent hover:text-accent-foreground"
|
className="h-auto w-[74px] justify-end gap-1.5 px-0 py-0 text-sm text-muted-foreground hover:bg-transparent hover:text-accent-foreground has-[>svg]:px-0"
|
||||||
>
|
>
|
||||||
{roleName}
|
{roleName}
|
||||||
<ChevronDown className="h-4 w-4" />
|
<ChevronDown className="h-4 w-4" />
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { atom } from "jotai";
|
import { atom } from "jotai";
|
||||||
import { atomWithQuery } from "jotai-tanstack-query";
|
import { atomWithQuery } from "jotai-tanstack-query";
|
||||||
import { type AgentToolInfo, agentToolsApiService } from "@/lib/apis/agent-tools-api.service";
|
import { agentToolsApiService } from "@/lib/apis/agent-tools-api.service";
|
||||||
import { cacheKeys } from "@/lib/query-client/cache-keys";
|
import { cacheKeys } from "@/lib/query-client/cache-keys";
|
||||||
import { activeSearchSpaceIdAtom } from "../search-spaces/search-space-query.atoms";
|
import { activeSearchSpaceIdAtom } from "../search-spaces/search-space-query.atoms";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue