fix: fix text size and color
This commit is contained in:
parent
609be4caa6
commit
e19fa42516
@ -45,7 +45,7 @@
|
|||||||
<template #header="{ opened, hide, toggle }">
|
<template #header="{ opened, hide, toggle }">
|
||||||
<div
|
<div
|
||||||
v-if="!hide"
|
v-if="!hide"
|
||||||
class="flex cursor-pointer gap-1.5 px-1 text-sm font-medium text-gray-600 transition-all duration-300 ease-in-out"
|
class="flex cursor-pointer gap-1.5 px-1 text-base font-medium text-gray-600 transition-all duration-300 ease-in-out"
|
||||||
:class="
|
:class="
|
||||||
isSidebarCollapsed
|
isSidebarCollapsed
|
||||||
? 'ml-0 h-0 overflow-hidden opacity-0'
|
? 'ml-0 h-0 overflow-hidden opacity-0'
|
||||||
@ -90,7 +90,7 @@
|
|||||||
class=""
|
class=""
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<span class="grid h-5 w-6 flex-shrink-0 place-items-center">
|
<span class="grid h-4.5 w-4.5 flex-shrink-0 place-items-center">
|
||||||
<CollapseSidebar
|
<CollapseSidebar
|
||||||
class="h-4.5 w-4.5 text-gray-700 duration-300 ease-in-out"
|
class="h-4.5 w-4.5 text-gray-700 duration-300 ease-in-out"
|
||||||
:class="{ '[transform:rotateY(180deg)]': isSidebarCollapsed }"
|
:class="{ '[transform:rotateY(180deg)]': isSidebarCollapsed }"
|
||||||
|
|||||||
@ -1,28 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<button
|
<button
|
||||||
class="flex h-7 cursor-pointer items-center rounded text-gray-800 duration-300 ease-in-out focus:outline-none focus:transition-none focus-visible:rounded focus-visible:ring-2 focus-visible:ring-gray-400"
|
class="flex h-7 cursor-pointer items-center rounded text-gray-700 duration-300 ease-in-out focus:outline-none focus:transition-none focus-visible:rounded focus-visible:ring-2 focus-visible:ring-gray-400"
|
||||||
:class="isActive ? 'bg-white shadow-sm' : 'hover:bg-gray-100'"
|
:class="isActive ? 'bg-white shadow-sm' : 'hover:bg-gray-100'"
|
||||||
@click="handleClick"
|
@click="handleClick"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex w-full items-center justify-between duration-300 ease-in-out"
|
class="flex w-full items-center justify-between duration-300 ease-in-out"
|
||||||
:class="isCollapsed ? 'p-1' : 'px-2 py-1'"
|
:class="isCollapsed ? 'ml-[3px] p-1' : 'px-2 py-1'"
|
||||||
>
|
>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<Tooltip :text="label" placement="right" :disabled="!isCollapsed">
|
<Tooltip :text="label" placement="right" :disabled="!isCollapsed">
|
||||||
<slot name="icon">
|
<slot name="icon">
|
||||||
<span class="grid h-5 w-6 flex-shrink-0 place-items-center">
|
<span class="grid h-4.5 w-4.5 flex-shrink-0 place-items-center">
|
||||||
<FeatherIcon
|
<FeatherIcon
|
||||||
v-if="typeof icon == 'string'"
|
v-if="typeof icon == 'string'"
|
||||||
:name="icon"
|
:name="icon"
|
||||||
class="h-4 w-4 text-gray-700"
|
class="h-4.5 w-4.5 text-gray-700"
|
||||||
/>
|
/>
|
||||||
<component v-else :is="icon" class="h-4 w-4 text-gray-700" />
|
<component v-else :is="icon" class="h-4.5 w-4.5 text-gray-700" />
|
||||||
</span>
|
</span>
|
||||||
</slot>
|
</slot>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<span
|
<span
|
||||||
class="flex-1 flex-shrink-0 text-sm duration-300 ease-in-out"
|
class="flex-1 flex-shrink-0 text-base duration-300 ease-in-out"
|
||||||
:class="
|
:class="
|
||||||
isCollapsed
|
isCollapsed
|
||||||
? 'ml-0 w-0 overflow-hidden opacity-0'
|
? 'ml-0 w-0 overflow-hidden opacity-0'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user