add mt-1 when AsideMenuSingle isChildren == true

This commit is contained in:
Dede Fuji Abdul 2023-10-18 17:00:51 +07:00
parent 1388d3bfa6
commit 34e4851027

View File

@ -22,7 +22,7 @@ defineProps({
<template> <template>
<div class="group"> <div class="group">
<RouterLink :to="item.href" <RouterLink :to="item.href"
:class="[selected ? 'bg-primary-500 text-white font-bold' : 'font-semibold text-aside group-hover:bg-primary-100 text-gray-600 group-hover:text-white group-hover:bg-primary-500', 'w-full flex items-center pl-2 pr-4 py-2 text-xs rounded-xl']"> :class="[selected ? 'bg-primary-500 text-white font-bold' : 'font-semibold text-aside group-hover:bg-primary-100 text-gray-600 group-hover:text-white group-hover:bg-primary-500', 'w-full flex items-center pl-2 pr-4 py-2 text-xs rounded-xl', isChildren ? 'mt-1' : 'mt-0']">
<svg v-if="isChildren" :class="[selected ? 'stroke-white' : 'text-aside group-hover:stroke-white', 'h-6 w-6']" <svg v-if="isChildren" :class="[selected ? 'stroke-white' : 'text-aside group-hover:stroke-white', 'h-6 w-6']"
width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">