mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 15:15:01 +00:00
Refactor highlight rendering in search and cmdk components
- Replaced the use of `:mark` elements with `:span` elements for highlighted text in both search and cmdk components, applying a unified CSS class for consistent styling. - Improved the visual coherence of highlighted items across the application.
This commit is contained in:
@@ -282,7 +282,7 @@
|
||||
result []]
|
||||
(let [[b-cut hl-cut e-cut] (text-util/cut-by content "$pfts_2lqh>$" "$<pfts_2lqh$")
|
||||
hiccups-add [[:span b-cut]
|
||||
[:mark.p-0.rounded-none hl-cut]]
|
||||
[:span {:class "ui__list-item-highlighted-span"} hl-cut]]
|
||||
hiccups-add (remove nil? hiccups-add)
|
||||
new-result (concat result hiccups-add)]
|
||||
(if-not (string/blank? e-cut)
|
||||
|
||||
Reference in New Issue
Block a user