refactor: minor ui improvements

This commit is contained in:
liyasthomas
2021-12-14 22:41:07 +05:30
parent 70555cd4a6
commit a2757a0335
58 changed files with 289 additions and 110 deletions

View File

@@ -16,7 +16,7 @@
>
<SmartIcon
class="svg-icons"
:class="{ 'text-green-500': isSelected }"
:class="{ 'text-accent': isSelected }"
:name="getCollectionIcon"
/>
</span>
@@ -24,7 +24,9 @@
class="cursor-pointer flex flex-1 min-w-0 py-2 pr-2 transition group-hover:text-secondaryDark"
@click="toggleShowChildren()"
>
<span class="truncate"> {{ collection.name }} </span>
<span class="truncate" :class="{ 'text-accent': isSelected }">
{{ collection.name }}
</span>
</span>
<div class="flex">
<ButtonSecondary

View File

@@ -16,7 +16,7 @@
>
<SmartIcon
class="svg-icons"
:class="{ 'text-green-500': isSelected }"
:class="{ 'text-accent': isSelected }"
:name="getCollectionIcon"
/>
</span>
@@ -24,7 +24,7 @@
class="cursor-pointer flex flex-1 min-w-0 py-2 pr-2 transition group-hover:text-secondaryDark"
@click="toggleShowChildren()"
>
<span class="truncate">
<span class="truncate" :class="{ 'text-accent': isSelected }">
{{ folder.name ? folder.name : folder.title }}
</span>
</span>

View File

@@ -17,7 +17,7 @@
<SmartIcon
v-if="isSelected"
class="svg-icons"
:class="{ 'text-green-500': isSelected }"
:class="{ 'text-accent': isSelected }"
name="check-circle"
/>
<span v-else class="truncate">
@@ -28,7 +28,9 @@
class="cursor-pointer flex flex-1 min-w-0 py-2 pr-2 transition items-center group-hover:text-secondaryDark"
@click="!doc ? selectRequest() : {}"
>
<span class="truncate"> {{ request.name }} </span>
<span class="truncate" :class="{ 'text-accent': isSelected }">
{{ request.name }}
</span>
<span
v-if="
active &&