Skip to content

Commit

Permalink
Update global search to show marks bolder
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed Oct 11, 2023
1 parent aa36d6b commit 6fb3d0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
::ng-deep mark {
color: inherit;
background: none;
font-weight: 400;
font-weight: bolder;
}

::ng-deep :not(h3, h3 > span) > mark {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class GlobalSearchService {
const result = results[fqid];
if (result.matched_by) {
for (const field of Object.keys(result.matched_by)) {
if (result.content[field]) {
if (result.content[field] && field != `title`) {
for (const word of result.matched_by[field]) {
result.content[field] = `${result.content[field]}`.replace(
new RegExp(word, `gi`),
Expand Down

0 comments on commit 6fb3d0b

Please sign in to comment.