mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
feat(quick_search): result titles are now aligned, inline with result text
This commit is contained in:
parent
e20816a7ce
commit
53bcec602d
@ -236,7 +236,10 @@ export default class QuickSearchWidget extends BasicWidget {
|
|||||||
|
|
||||||
// Build the display HTML with content snippet below the title
|
// Build the display HTML with content snippet below the title
|
||||||
let itemHtml = `<div style="display: flex; flex-direction: column;">
|
let itemHtml = `<div style="display: flex; flex-direction: column;">
|
||||||
<div><span class="${result.icon}"></span> ${result.highlightedNotePathTitle}</div>`;
|
<div style="display: flex; align-items: flex-start; gap: 6px;">
|
||||||
|
<span class="${result.icon}" style="flex-shrink: 0; margin-top: 1px;"></span>
|
||||||
|
<span style="flex: 1;">${result.highlightedNotePathTitle}</span>
|
||||||
|
</div>`;
|
||||||
|
|
||||||
// Add content snippet below the title if available
|
// Add content snippet below the title if available
|
||||||
if (result.highlightedContentSnippet) {
|
if (result.highlightedContentSnippet) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user