Show search highlight chip on shared documents (#13227)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tom Moor
2026-08-01 16:29:25 -04:00
committed by GitHub
co-authored by Claude Opus 5
parent f5b39aba8f
commit 396ac980a8
@@ -35,6 +35,7 @@ import TableOfContentsMenu from "~/menus/TableOfContentsMenu";
import type Document from "~/models/Document";
import { documentEditPath } from "~/utils/routeHelpers";
import PublicBreadcrumb from "./PublicBreadcrumb";
import { SearchHighlightChip } from "./SearchHighlightChip";
type Props = {
document: Document;
@@ -180,6 +181,7 @@ function SharedDocumentHeader({ document }: Props) {
}
actions={
<>
<SearchHighlightChip />
{hasHeadings && !isMobile && !tocInLeft && <Action>{toc}</Action>}
{allowSubscriptions !== false && !user && env.EMAIL_ENABLED && (
<SubscribeAction shareId={shareId} documentId={document.id} />