feat(search): highlight on preview (#783)

* feat: primitive full-text search on preview

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

* fix: remove invalid regex and unused code path

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>

---------

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron Pham
2024-02-01 16:48:27 -05:00
committed by GitHub
parent 9aa6a18be2
commit 756acc7f97
2 changed files with 64 additions and 13 deletions

View File

@ -121,6 +121,11 @@
}
}
& .highlight {
color: var(--secondary);
font-weight: 700;
}
& > #preview-container {
display: block;
box-sizing: border-box;
@ -166,11 +171,6 @@
outline: none;
font-weight: inherit;
& .highlight {
color: var(--secondary);
font-weight: 700;
}
&:hover,
&:focus,
&.focus {