Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions src/browser/components/AgentListItem/AgentListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ function DraftAgentListItemInner(props: DraftAgentListItemProps) {
<div className="flex min-w-0 items-center gap-1 text-[14px] leading-6">
<PenLine
className={cn("h-3 w-3 shrink-0", isSelected ? "text-content-primary" : "text-muted")}
strokeWidth={1.8}
/>
<span
className={cn(
Expand Down Expand Up @@ -336,7 +337,7 @@ function DraftAgentListItemInner(props: DraftAgentListItemProps) {
<button
type="button"
className={cn(
"text-muted hover:text-foreground inline-flex h-4 w-4 cursor-pointer items-center justify-center border-none bg-transparent p-0 opacity-0 transition-colors duration-200",
"text-muted hover:text-content-destructive inline-flex h-4 w-4 cursor-pointer items-center justify-center border-none bg-transparent p-0 opacity-0 transition-colors duration-200",
// Keep long-press as the compact mobile affordance on narrow
// touch layouts, but show the button on wider touch screens so
// it never becomes an invisible tappable hotspot.
Expand All @@ -352,7 +353,7 @@ function DraftAgentListItemInner(props: DraftAgentListItemProps) {
data-project-path={projectPath}
data-draft-id={draft.draftId}
>
<Trash />
<Trash className="h-3.5 w-3.5 shrink-0" strokeWidth={1.8} />
</button>
</TooltipTrigger>
<TooltipContent align="start">Delete draft</TooltipContent>
Expand All @@ -366,7 +367,7 @@ function DraftAgentListItemInner(props: DraftAgentListItemProps) {
className="w-[150px]"
>
<PositionedMenuItem
icon={<Trash />}
icon={<Trash className="h-4 w-4 shrink-0" strokeWidth={1.8} />}
label="Delete draft"
onClick={() => {
ctxMenu.close();
Expand Down Expand Up @@ -781,7 +782,11 @@ function RegularAgentListItemInner(props: AgentListItemProps) {
}
data-workspace-id={workspaceId}
>
{isRemoving ? <Loader2 className="h-3 w-3 animate-spin" /> : <Trash2 />}
{isRemoving ? (
<Loader2 className="h-3 w-3 animate-spin" />
) : (
<Trash2 className="h-4 w-4 shrink-0" strokeWidth={1.8} />
)}
</button>
</TooltipTrigger>
<TooltipContent align="start">
Expand Down Expand Up @@ -825,7 +830,7 @@ function RegularAgentListItemInner(props: AgentListItemProps) {
aria-label={`Workspace actions for ${displayTitle}`}
data-workspace-id={workspaceId}
>
<EllipsisVertical />
<EllipsisVertical className="h-4 w-4 shrink-0" strokeWidth={1.8} />
</button>
</PopoverTrigger>

Expand Down Expand Up @@ -863,7 +868,7 @@ function RegularAgentListItemInner(props: AgentListItemProps) {
/>
{!isSelected && !isUnread && (
<PositionedMenuItem
icon={<EyeOff />}
icon={<EyeOff className="h-4 w-4 shrink-0" strokeWidth={1.8} />}
label="Mark unread"
onClick={() => {
// Reset the read marker to epoch so existing activity is treated as unseen.
Expand All @@ -874,7 +879,13 @@ function RegularAgentListItemInner(props: AgentListItemProps) {
)}
{canToggleCompletedChildren && (
<PositionedMenuItem
icon={isCompletedChildrenExpanded ? <EyeOff /> : <Eye />}
icon={
isCompletedChildrenExpanded ? (
<EyeOff className="h-4 w-4 shrink-0" strokeWidth={1.8} />
) : (
<Eye className="h-4 w-4 shrink-0" strokeWidth={1.8} />
)
}
label={isCompletedChildrenExpanded ? "Hide sub-agents" : "Show sub-agents"}
onClick={() => {
toggleCompletedChildren();
Expand Down Expand Up @@ -991,7 +1002,7 @@ function RegularAgentListItemInner(props: AgentListItemProps) {
</div>
) : awaitingUserQuestion ? (
<div className="text-muted flex min-w-0 items-center gap-1.5 text-xs leading-4">
<MessageCircleQuestionMark className="h-3 w-3 shrink-0" />
<MessageCircleQuestionMark className="h-3 w-3 shrink-0" strokeWidth={1.8} />
<span className="min-w-0 truncate">Mux has a few questions</span>
</div>
) : (
Expand Down
25 changes: 14 additions & 11 deletions src/browser/components/ProjectSidebar/ProjectSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ const ProjectDragLayer: React.FC = () => {
<div style={{ transform: `translate(${currentOffset.x + 10}px, ${currentOffset.y + 10}px)` }}>
<div className={cn(PROJECT_ITEM_BASE_CLASS, "w-fit max-w-64 rounded-sm shadow-lg")}>
<span className="text-secondary mr-2 flex h-5 w-5 shrink-0 items-center justify-center">
<ChevronRight size={12} />
<ChevronRight className="h-4 w-4 shrink-0" strokeWidth={1.8} />
</span>
<div className="flex min-w-0 flex-1 items-center pr-2">
<span className="text-foreground truncate text-sm font-medium">{basename}</span>
Expand Down Expand Up @@ -1345,8 +1345,8 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
className="text-secondary hover:bg-hover hover:border-border-light mr-1.5 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border border-transparent bg-transparent p-0 transition-all duration-200"
>
<ChevronRight
size={12}
className="transition-transform duration-200"
className="h-4 w-4 shrink-0 transition-transform duration-200"
strokeWidth={1.8}
style={{
transform: isMultiProjectSectionExpanded
? "rotate(90deg)"
Expand Down Expand Up @@ -1473,8 +1473,8 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
className="text-secondary hover:bg-hover hover:border-border-light mr-1.5 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border border-transparent bg-transparent p-0 transition-all duration-200"
>
<ChevronRight
size={12}
className="transition-transform duration-200"
className="h-4 w-4 shrink-0 transition-transform duration-200"
strokeWidth={1.8}
style={{ transform: isExpanded ? "rotate(90deg)" : "rotate(0deg)" }}
/>
</button>
Expand Down Expand Up @@ -1544,7 +1544,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
data-project-path={projectPath}
className="text-content-secondary hover:bg-hover hover:border-border-light mr-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border border-transparent bg-transparent text-sm leading-none transition-all duration-200"
>
<Plus />
<Plus className="h-4 w-4 shrink-0" strokeWidth={1.8} />
</button>
</TooltipTrigger>
<TooltipContent>
Expand All @@ -1562,7 +1562,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
data-project-path={projectPath}
className="text-content-secondary hover:bg-hover hover:border-border-light flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border border-transparent bg-transparent transition-all duration-200"
>
<EllipsisVertical />
<EllipsisVertical className="h-4 w-4 shrink-0" strokeWidth={1.8} />
</button>
</TooltipTrigger>
<TooltipContent align="end">Project options</TooltipContent>
Expand Down Expand Up @@ -2177,7 +2177,10 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
: "rotate(0deg)",
}}
>
<ChevronRight size={12} />
<ChevronRight
className="h-4 w-4 shrink-0"
strokeWidth={1.8}
/>
</span>
</button>
{isTierExpanded && (
Expand Down Expand Up @@ -2419,15 +2422,15 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
position={projectContextMenu.position}
>
<PositionedMenuItem
icon={<Pencil />}
icon={<Pencil className="h-4 w-4 shrink-0" strokeWidth={1.8} />}
label="Edit name"
disabled={!hasProjectMenuTarget}
onClick={() => {
handleProjectMenuEditName();
}}
/>
<PositionedMenuItem
icon={<KeyRound />}
icon={<KeyRound className="h-4 w-4 shrink-0" strokeWidth={1.8} />}
label="Manage secrets"
disabled={!hasProjectMenuTarget}
onClick={() => {
Expand All @@ -2436,7 +2439,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
/>
<Separator />
<PositionedMenuItem
icon={<Trash />}
icon={<Trash className="h-4 w-4 shrink-0" strokeWidth={1.8} />}
label="Delete..."
variant="destructive"
disabled={!hasProjectMenuTarget}
Expand Down
Loading