Fixed css classes names

This commit is contained in:
Simon Cambier
2024-10-08 20:45:34 +02:00
parent af63186aa2
commit 9f0c460161
3 changed files with 8 additions and 6 deletions

View File

@@ -87,18 +87,20 @@
gap: 5px;
}
.icon {
.omnisearch-result__icon {
display: inline-block;
vertical-align: middle;
width: 16px;
height: 16px;
margin-right: 4px;
}
.icon svg {
.omnisearch-result__icon svg {
width: 100%;
height: 100%;
}
.icon-emoji {
.omnisearch-result__icon--emoji {
font-size: 16px;
vertical-align: middle;
margin-right: 4px;

View File

@@ -165,7 +165,7 @@
{:else}
<!-- File Icon -->
{#if fileIconSVG}
<span class="icon" use:renderSVG="{fileIconSVG}"></span>
<span class="omnisearch-result__icon" use:renderSVG="{fileIconSVG}"></span>
{/if}
{/if}
<span>
@@ -191,7 +191,7 @@
<div class="omnisearch-result__folder-path">
<!-- Folder Icon -->
{#if folderIconSVG}
<span class="icon" use:renderSVG="{folderIconSVG}"></span>
<span class="omnisearch-result__icon" use:renderSVG="{folderIconSVG}"></span>
{/if}
<span>
{@html plugin.textProcessor.highlightText(notePath, matchesNotePath)}

View File

@@ -133,7 +133,7 @@ export async function loadIconSVG(
if (!prefix) {
// 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]