Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: Add intro text above suggested support articles (#46654)

Ali Waseemefdfb11f9396
diff --git a/apps/studio/components/interfaces/Support/DocsSuggestions.tsx b/apps/studio/components/interfaces/Support/DocsSuggestions.tsx
index 72dbb421d13..33a7fd3a4b3 100644
--- a/apps/studio/components/interfaces/Support/DocsSuggestions.tsx
+++ b/apps/studio/components/interfaces/Support/DocsSuggestions.tsx
@@ -58,31 +58,36 @@ interface DocsSuggestions_ResultsProps {
function DocsSuggestions_Results({ results, isStale }: DocsSuggestions_ResultsProps) {
return (
- <ul
- className={cn(
- 'flex flex-col gap-y-0.5 transition-opacity duration-200',
- isStale ? 'opacity-50' : 'opacity-100'
- )}
- >
- {results.slice(0, 5).map((page) => {
- return (
- <li key={page.id} className="flex items-center gap-x-1">
- {page.type === 'github-discussions' ? (
- <Github size={16} className="text-foreground-muted" />
- ) : (
- <Book size={16} className="text-foreground-muted" />
- )}
- <a
- href={page.type === 'github-discussions' ? page.path : `${DOCS_URL}${page.path}`}
- target="_blank"
- rel="noreferrer"
- className="text-sm text-foreground-light hover:text-foreground transition"
- >
- {page.title}
- </a>
- </li>
- )
- })}
- </ul>
+ <div>
+ <p className="text-sm text-foreground-light">
+ Below are some articles that might help with your issue
+ </p>
+ <ul
+ className={cn(
+ 'flex flex-col gap-y-0.5 py-1 transition-opacity duration-200',
+ isStale ? 'opacity-50' : 'opacity-100'
+ )}
+ >
+ {results.slice(0, 5).map((page) => {
+ return (
+ <li key={page.id} className="flex items-center gap-x-1">
+ {page.type === 'github-discussions' ? (
+ <Github size={16} className="text-foreground-muted" />
+ ) : (
+ <Book size={16} className="text-foreground-muted" />
+ )}
+ <a
+ href={page.type === 'github-discussions' ? page.path : `${DOCS_URL}${page.path}`}
+ target="_blank"
+ rel="noreferrer"
+ className="text-sm text-foreground-light hover:text-foreground transition"
+ >
+ {page.title}
+ </a>
+ </li>
+ )
+ })}
+ </ul>
+ </div>
)
}