style: app sidebar icon style fix
This commit is contained in:
parent
115400a1ee
commit
e699538043
@ -206,7 +206,7 @@ function parseView(views) {
|
||||
}
|
||||
|
||||
function getIcon(routeName, icon) {
|
||||
if (icon) return h('div', icon)
|
||||
if (icon) return h('div', { class: 'size-auto' }, icon)
|
||||
|
||||
switch (routeName) {
|
||||
case 'Leads':
|
||||
|
||||
@ -11,13 +11,13 @@
|
||||
<div class="flex items-center truncate">
|
||||
<Tooltip :text="label" placement="right" :disabled="!isCollapsed">
|
||||
<slot name="icon">
|
||||
<span class="grid h-4.5 w-4.5 flex-shrink-0 place-items-center">
|
||||
<span class="grid flex-shrink-0 place-items-center">
|
||||
<FeatherIcon
|
||||
v-if="typeof icon == 'string'"
|
||||
:name="icon"
|
||||
class="h-4.5 w-4.5 text-gray-700"
|
||||
class="size-4.5 text-gray-700"
|
||||
/>
|
||||
<component v-else :is="icon" class="h-4.5 w-4.5 text-gray-700" />
|
||||
<component v-else :is="icon" class="size-4.5 text-gray-700" />
|
||||
</span>
|
||||
</slot>
|
||||
</Tooltip>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user