GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): palette project rows show the location under the name (#29980) · SunkenInTime/t3code@d8727ee

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components
    • CommandPalette.logic.ts
    • CommandPaletteProjectItems.tsx
    • CommandPaletteResults.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/CommandPalette.logic.ts‎

Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPalette.logic.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ export interface CommandPaletteItem {
195195
/** The title as plain text, for searching, when `title` is styled. */
196196
readonly searchTitle?: string;
197197
readonly description?: ReactNode;
198+
readonly descriptionBelow?: boolean;
198199
readonly threadContentMatch?: CommandPaletteThreadContentMatch;
199200
readonly timestamp?: string;
200201
/** Thread rows rank by this, with use history, instead of by `searchTerms`. */
@@ -392,6 +393,7 @@ export function buildProjectActionItems(input: {
392393
],
393394
title: project.displayName,
394395
description: input.renderDescription?.(project) ?? project.workspaceRoot,
396+
descriptionBelow: true,
395397
icon: input.icon(project),
396398
...(input.shortcutCommand !== undefined ? { shortcutCommand: input.shortcutCommand } : {}),
397399
...(pin ? { pin } : {}),
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPaletteProjectItems.tsx
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ function ProjectLocationDescription(props: {
115115
}) {
116116
const location = props.location ?? UNKNOWN_PROJECT_LOCATION;
117117
return (
118-
<span className="flex min-w-0 flex-col gap-0.5">
119-
<span className="inline-flex min-w-0 items-center gap-1">
118+
<span className="flex min-w-0 items-center gap-2">
119+
<span className="inline-flex min-w-0 max-w-1/2 shrink-0 items-center gap-1">
120120
{location.kind === "remote" ? (
121121
<EnvironmentMachineIcon
122122
aria-hidden
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/CommandPaletteResults.tsx
+2-6Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,12 @@ function CommandPaletteRowContent({ item }: { item: CommandPaletteResultItem })
222222
<CommandPaletteTitle item={item} />
223223
</>
224224
);
225+
const stacked = item.threadContentMatch || item.matchHint || item.descriptionBelow;
225226
return (
226227
<>
227228
<CommandPaletteTitleIcon>{item.icon}</CommandPaletteTitleIcon>
228229
{item.description || item.threadContentMatch || item.matchHint ? (
229-
<span
230-
className={cn(
231-
"flex min-w-0 flex-1",
232-
item.threadContentMatch || item.matchHint ? "flex-col" : "items-center gap-2",
233-
)}
234-
>
230+
<span className={cn("flex min-w-0 flex-1", stacked ? "flex-col" : "items-center gap-2")}>
235231
<span className="flex min-w-0 items-center gap-1.5 text-control text-foreground in-data-[active=true]:text-strong-foreground">
236232
{title}
237233
<ThreadRowContext item={item} />

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.