Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit dd5ea32

Browse files
authored
fix(web): 33 web UI fixes (pingdotgg#4700)
1 parent c13a021 commit dd5ea32

25 files changed

Lines changed: 544 additions & 432 deletions

‎apps/web/src/components/CommandPaletteResults.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function CommandPaletteResults(props: CommandPaletteResultsProps) {
4141
<CommandList>
4242
{props.groups.map((group) => (
4343
<CommandGroup items={group.items} key={group.value}>
44-
<CommandGroupLabel>{group.label}</CommandGroupLabel>
44+
<CommandGroupLabel className="ps-[9px]">{group.label}</CommandGroupLabel>
4545
<CommandCollection>
4646
{(item) =>
4747
item.disabled ? (
@@ -133,13 +133,13 @@ function CommandPaletteResultRow(props: {
133133
)}
134134
{props.item.titleTrailingContent}
135135
{props.item.timestamp ? (
136-
<span className="min-w-12 shrink-0 text-right text-[10px] tabular-nums text-muted-foreground/70">
136+
<span className="min-w-12 shrink-0 text-right text-xs tabular-nums text-muted-foreground/70">
137137
{props.item.timestamp}
138138
</span>
139139
) : null}
140140
{shortcutLabel ? <CommandShortcut>{shortcutLabel}</CommandShortcut> : null}
141141
{props.item.kind === "submenu" ? (
142-
<ChevronRightIcon className="ml-auto size-4 shrink-0 text-muted-foreground/50" />
142+
<ChevronRightIcon className="-me-0.5 ms-auto size-4 shrink-0 text-muted-foreground/70" />
143143
) : null}
144144
</CommandItem>
145145
);

‎apps/web/src/components/ProjectFavicon.tsx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { FolderIcon } from "lucide-react";
44
import type { ComponentType } from "react";
55
import { useState } from "react";
66
import { useAssetUrl } from "../assets/assetUrls";
7+
import { cn } from "~/lib/utils";
78

89
const loadedProjectFaviconSrcs = new Set<string>();
910

@@ -40,7 +41,7 @@ function ProjectFaviconFallback({
4041
readonly className?: string | undefined;
4142
readonly icon: ComponentType<{ className?: string }>;
4243
}) {
43-
return <Icon className={`size-3.5 shrink-0 text-muted-foreground/50 ${className ?? ""}`} />;
44+
return <Icon className={cn("size-3.5 shrink-0 text-muted-foreground/50", className)} />;
4445
}
4546

4647
function ProjectFaviconImage({
@@ -64,7 +65,11 @@ function ProjectFaviconImage({
6465
<img
6566
src={src}
6667
alt=""
67-
className={`size-3.5 shrink-0 rounded-sm object-contain ${status === "loaded" ? "" : "hidden"} ${className ?? ""}`}
68+
className={cn(
69+
"size-3.5 shrink-0 rounded-sm object-contain",
70+
status !== "loaded" && "hidden",
71+
className,
72+
)}
6873
onLoad={() => {
6974
loadedProjectFaviconSrcs.add(src);
7075
setStatus("loaded");

‎apps/web/src/components/Sidebar.tsx‎

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,9 +2218,8 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
22182218
<div className="group/project-header relative">
22192219
<SidebarMenuButton
22202220
ref={isManualProjectSorting ? dragHandleProps?.setActivatorNodeRef : undefined}
2221-
size="sm"
2222-
className={`h-8 gap-2 rounded-md px-2 py-1.5 pr-8 text-left hover:bg-sidebar-row-hover group-hover/project-header:bg-sidebar-row-hover group-hover/project-header:text-sidebar-foreground max-sm:pr-14 ${
2223-
isManualProjectSorting ? "cursor-grab active:cursor-grabbing" : "cursor-pointer"
2221+
className={`pr-8 group-hover/project-header:bg-sidebar-row-hover group-hover/project-header:text-sidebar-foreground max-sm:pr-14 ${
2222+
isManualProjectSorting ? "cursor-grab active:cursor-grabbing" : ""
22242223
}`}
22252224
{...(isManualProjectSorting && dragHandleProps ? dragHandleProps.attributes : {})}
22262225
{...(isManualProjectSorting && dragHandleProps ? dragHandleProps.listeners : {})}
@@ -2822,30 +2821,33 @@ const SidebarProjectsContent = memo(function SidebarProjectsContent(
28222821
);
28232822

28242823
return (
2825-
<SidebarContent className="gap-0">
2826-
<SidebarGroup className="px-2 pt-2 pb-1">
2827-
<SidebarMenu>
2828-
<SidebarMenuItem>
2829-
<CommandDialogTrigger
2830-
render={
2831-
<SidebarMenuButton
2832-
size="sm"
2833-
className="h-8 gap-2 rounded-md px-2 py-1.5 text-sidebar-muted-foreground/80 hover:bg-sidebar-row-hover hover:text-sidebar-foreground focus-visible:ring-0"
2834-
data-testid="command-palette-trigger"
2835-
/>
2836-
}
2837-
>
2838-
<SearchIcon className="size-4 shrink-0 text-sidebar-muted-foreground/80" />
2839-
<span className="flex-1 truncate text-left text-sm font-medium">Search</span>
2840-
{commandPaletteShortcutLabel ? (
2841-
<Kbd className="h-4 min-w-0 rounded-sm px-1.5 text-[10px]">
2842-
{commandPaletteShortcutLabel}
2843-
</Kbd>
2844-
) : null}
2845-
</CommandDialogTrigger>
2846-
</SidebarMenuItem>
2847-
</SidebarMenu>
2848-
</SidebarGroup>
2824+
<SidebarContent
2825+
className="gap-0"
2826+
fixedHeader={
2827+
<SidebarGroup className="px-2 pt-2 pb-1">
2828+
<SidebarMenu>
2829+
<SidebarMenuItem>
2830+
<CommandDialogTrigger
2831+
render={
2832+
<SidebarMenuButton
2833+
className="focus-visible:ring-0"
2834+
data-testid="command-palette-trigger"
2835+
/>
2836+
}
2837+
>
2838+
<SearchIcon />
2839+
<span className="flex-1 truncate">Search</span>
2840+
{commandPaletteShortcutLabel ? (
2841+
<Kbd className="h-4 min-w-0 rounded-sm px-1.5 text-[10px]">
2842+
{commandPaletteShortcutLabel}
2843+
</Kbd>
2844+
) : null}
2845+
</CommandDialogTrigger>
2846+
</SidebarMenuItem>
2847+
</SidebarMenu>
2848+
</SidebarGroup>
2849+
}
2850+
>
28492851
{showArm64IntelBuildWarning && arm64IntelBuildWarningDescription ? (
28502852
<SidebarGroup className="px-2 pt-2 pb-0">
28512853
<Alert variant="warning" className="rounded-2xl border-warning/40 bg-warning/8">

0 commit comments

Comments
 (0)