Fixed css classes names
This commit is contained in:
@@ -87,18 +87,20 @@
|
|||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.omnisearch-result__icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
.icon svg {
|
|
||||||
|
.omnisearch-result__icon svg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
.icon-emoji {
|
|
||||||
|
.omnisearch-result__icon--emoji {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<!-- File Icon -->
|
<!-- File Icon -->
|
||||||
{#if fileIconSVG}
|
{#if fileIconSVG}
|
||||||
<span class="icon" use:renderSVG="{fileIconSVG}"></span>
|
<span class="omnisearch-result__icon" use:renderSVG="{fileIconSVG}"></span>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<span>
|
<span>
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
<div class="omnisearch-result__folder-path">
|
<div class="omnisearch-result__folder-path">
|
||||||
<!-- Folder Icon -->
|
<!-- Folder Icon -->
|
||||||
{#if folderIconSVG}
|
{#if folderIconSVG}
|
||||||
<span class="icon" use:renderSVG="{folderIconSVG}"></span>
|
<span class="omnisearch-result__icon" use:renderSVG="{folderIconSVG}"></span>
|
||||||
{/if}
|
{/if}
|
||||||
<span>
|
<span>
|
||||||
{@html plugin.textProcessor.highlightText(notePath, matchesNotePath)}
|
{@html plugin.textProcessor.highlightText(notePath, matchesNotePath)}
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export async function loadIconSVG(
|
|||||||
|
|
||||||
if (!prefix) {
|
if (!prefix) {
|
||||||
// No prefix, assume it's an emoji or text
|
// No prefix, assume it's an emoji or text
|
||||||
return `<span class="icon-emoji">${name}</span>`
|
return `<span class="omnisearch-result__icon--emoji">${name}</span>`
|
||||||
}
|
}
|
||||||
|
|
||||||
const iconPackName = prefixToIconPack[prefix]
|
const iconPackName = prefixToIconPack[prefix]
|
||||||
|
|||||||
Reference in New Issue
Block a user