fix: 🐛 icon in titleContainer

This commit is contained in:
ThatOneCalculator 2023-10-19 11:24:58 -07:00
parent e0aebd8f32
commit 291cd65417
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
2 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,7 @@
<i
v-else-if="metadata.icon && !narrow"
class="icon"
:class="metadata.icon"
:class="icon(metadata.icon)"
></i>
<div class="title">

View File

@ -2,7 +2,7 @@
<div ref="el" class="fdidabkc" :style="{ background: bg }" @click="onClick">
<template v-if="metadata">
<div class="titleContainer" @click="showTabsPopup">
<i v-if="metadata.icon" class="icon" :class="metadata.icon"></i>
<i v-if="metadata.icon" class="icon" :class="icon(metadata.icon)"></i>
<div class="title">
<div class="title">{{ metadata.title }}</div>
@ -63,6 +63,7 @@ import { scrollToTop } from "@/scripts/scroll";
import MkButton from "@/components/MkButton.vue";
import { globalEvents } from "@/events";
import { injectPageMetadata } from "@/scripts/page-metadata";
import icon from "@/scripts/icon"
interface Tab {
key?: string | null;