Compare commits

..

2 Commits

Author SHA1 Message Date
bd8dd3f7c4 fix tab-list border in dark-mode 2023-03-28 12:22:36 +05:30
d221431bd7 add dark mode in base tabGroup and tab 2023-03-23 16:28:46 +05:30
5 changed files with 10 additions and 13 deletions

View File

@ -130,6 +130,7 @@
mt-5 mt-5
list-none list-none
border-b-2 border-gray-200 border-solid border-b-2 border-gray-200 border-solid
dark:border-gray-600
" "
> >
<!-- Tabs --> <!-- Tabs -->

View File

@ -127,6 +127,7 @@
mt-5 mt-5
list-none list-none
border-b-2 border-gray-200 border-solid border-b-2 border-gray-200 border-solid
dark:border-gray-600
" "
> >
<!-- Tabs --> <!-- Tabs -->

View File

@ -121,6 +121,7 @@
mt-5 mt-5
list-none list-none
border-b-2 border-gray-200 border-solid border-b-2 border-gray-200 border-solid
dark:border-gray-600
" "
> >
<!-- Tabs --> <!-- Tabs -->

View File

@ -21,7 +21,6 @@
group group
min-h-[100px] min-h-[100px]
bg-gray-50 bg-gray-50
dark:bg-gray-700 dark:border-gray-600
" "
:class="avatar ? 'w-32 h-32' : 'w-full'" :class="avatar ? 'w-32 h-32' : 'w-full'"
> >
@ -50,7 +49,7 @@
<a <a
href="#" href="#"
class="absolute z-30 bg-white rounded-full -bottom-3 -right-3 group dark:bg-gray-900" class="absolute z-30 bg-white rounded-full -bottom-3 -right-3 group"
@click.prevent.stop="onBrowse" @click.prevent.stop="onBrowse"
> >
<BaseIcon <BaseIcon
@ -96,7 +95,7 @@
<div <div
v-else-if="localFiles.length && avatar && !multiple" v-else-if="localFiles.length && avatar && !multiple"
class="flex w-full h-full border border-gray-200 rounded dark:border-gray-600" class="flex w-full h-full border border-gray-200 rounded"
> >
<img <img
v-if="localFiles[0].image" v-if="localFiles[0].image"
@ -170,11 +169,10 @@
-right-3 -right-3
group group
hover:border-gray-300 hover:border-gray-300
dark:border-gray-600 dark:bg-gray-900 dark:hover:border-gray-700
" "
@click.prevent.stop="onAvatarRemove(localFiles[0])" @click.prevent.stop="onAvatarRemove(localFiles[0])"
> >
<BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black dark:text-white" /> <BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black" />
</a> </a>
</div> </div>
@ -197,7 +195,6 @@
hover:border-gray-500 hover:border-gray-500
relative relative
max-w-md max-w-md
dark:border-gray-600 dark:bg-transparent dark:hover:border-gray-700
" "
@click.prevent @click.prevent
> >
@ -273,7 +270,6 @@
-right-3 -right-3
group group
hover:border-gray-300 hover:border-gray-300
dark:border-gray-600 dark:bg-gray-900 dark:hover:border-gray-700
" "
@click.prevent.stop="onFileRemove(index)" @click.prevent.stop="onFileRemove(index)"
> >
@ -297,7 +293,6 @@
hover:border-gray-500 hover:border-gray-500
relative relative
max-w-md max-w-md
dark:border-gray-600 dark:bg-gray-800 dark:hover:border-gray-700
" "
@click.prevent @click.prevent
> >
@ -373,11 +368,10 @@
-right-3 -right-3
group group
hover:border-gray-300 hover:border-gray-300
dark:border-gray-600 dark:bg-gray-900 dark:hover:border-gray-700
" "
@click.prevent.stop="onFileRemove(index)" @click.prevent.stop="onFileRemove(index)"
> >
<BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black dark:text-white" /> <BaseIcon name="XIcon" class="h-4 text-xl leading-6 text-black" />
</a> </a>
</a> </a>
</div> </div>

View File

@ -7,7 +7,7 @@
> >
<TabList <TabList
:class="[ :class="[
'flex border-b border-grey-light', 'flex border-b border-grey-light dark:border-gray-600',
'relative overflow-x-auto overflow-y-hidden', 'relative overflow-x-auto overflow-y-hidden',
'lg:pb-0 lg:ml-0', 'lg:pb-0 lg:ml-0',
]" ]"
@ -22,8 +22,8 @@
:class="[ :class="[
'px-8 py-2 text-sm leading-5 font-medium flex items-center relative border-b-2 mt-4 focus:outline-none whitespace-nowrap', 'px-8 py-2 text-sm leading-5 font-medium flex items-center relative border-b-2 mt-4 focus:outline-none whitespace-nowrap',
selected selected
? ' border-primary-400 text-black font-medium' ? 'border-primary-400 text-black font-medium dark:text-white'
: 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300', : 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-gray-400 dark:hover:border-gray-500',
]" ]"
> >
{{ tab.title }} {{ tab.title }}