diff --git a/ui/src/components/search/SearchResultRow.tsx b/ui/src/components/search/SearchResultRow.tsx
index 858819444f1..b5ea62baee8 100644
--- a/ui/src/components/search/SearchResultRow.tsx
+++ b/ui/src/components/search/SearchResultRow.tsx
@@ -118,6 +118,7 @@ function SearchResultRowImpl({
const titleHighlights = result.snippets.find((snippet) => snippet.field === "title")?.highlights;
const bodySnippets = result.snippets.filter((snippet) => snippet.field !== "title").slice(0, 2);
const previewImageUrl = result.previewImageUrl;
+ const hasRightRail = previewImageUrl || assigneeName || updated;
return (
-
+
{issue.identifier ? (
{issue.identifier}
@@ -139,12 +140,8 @@ function SearchResultRowImpl({
-
- {assigneeName ? : null}
- {updated ? {updated} : null}
-
{bodySnippets.map((snippet, index) => (
))}
-
- {assigneeName ? {assigneeName} : null}
- {updated ? {updated} : null}
-
+ {hasRightRail ? (
+
+ {assigneeName ? {assigneeName} : null}
+ {updated ? {updated} : null}
+
+ ) : null}
- {previewImageUrl ? (
-

+ {hasRightRail ? (
+
+ {assigneeName || updated ? (
+
+ {assigneeName ? : null}
+ {updated ? {updated} : null}
+
+ ) : null}
+ {previewImageUrl ? (
+

+ ) : null}
+
) : null}
);
diff --git a/ui/src/pages/Search.tsx b/ui/src/pages/Search.tsx
index 858d9c806e8..1271914a139 100644
--- a/ui/src/pages/Search.tsx
+++ b/ui/src/pages/Search.tsx
@@ -577,7 +577,7 @@ function SearchTabContent({
if (!hasResults) return null;
return (
-
+
{totalResults === 1 ? "1 result" : `${totalResults} results`} · sorted by relevance
diff --git a/ui/storybook/stories/search.stories.tsx b/ui/storybook/stories/search.stories.tsx
index 0054fba2841..258d8c716c0 100644
--- a/ui/storybook/stories/search.stories.tsx
+++ b/ui/storybook/stories/search.stories.tsx
@@ -266,7 +266,7 @@ function SearchPagePreview({
{state === "results" ? (
-
+
{response.results.length} results · sorted by relevance
@@ -577,7 +577,7 @@ function SearchStories() {
Search result row
Issue, agent, project rows
-
+
{fixtureResults.map((result) => (