From 815265f5562b5dbffd19e395410670701c4ade42 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Wed, 6 Nov 2024 12:36:57 -0700 Subject: [PATCH] =?UTF-8?q?=E2=86=94=EF=B8=8F=20Truncate=20long=20results?= =?UTF-8?q?=20(#496)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/breezy-cups-kick.md | 5 +++++ packages/site/src/components/Navigation/Search.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/breezy-cups-kick.md diff --git a/.changeset/breezy-cups-kick.md b/.changeset/breezy-cups-kick.md new file mode 100644 index 00000000..12307fa5 --- /dev/null +++ b/.changeset/breezy-cups-kick.md @@ -0,0 +1,5 @@ +--- +'@myst-theme/site': patch +--- + +Update search to truncate long results diff --git a/packages/site/src/components/Navigation/Search.tsx b/packages/site/src/components/Navigation/Search.tsx index 5dbb876e..41cc755f 100644 --- a/packages/site/src/components/Navigation/Search.tsx +++ b/packages/site/src/components/Navigation/Search.tsx @@ -267,7 +267,7 @@ function SearchResultItem({ >
{iconRenderer} -
+
{titleRenderer} {subtitleRenderer}