refactor: update z-index values for activity components for better layering

(cherry picked from commit 4c1eaf507d9ea095ada7277d1a3ae8850184e961)
This commit is contained in:
Shariq Ansari 2025-08-01 17:56:07 +05:30 committed by Mergify
parent 29e8c73d50
commit d39500f706

View File

@ -50,11 +50,11 @@
class="activity grid grid-cols-[30px_minmax(auto,_1fr)] gap-2 px-3 sm:gap-4 sm:px-10" class="activity grid grid-cols-[30px_minmax(auto,_1fr)] gap-2 px-3 sm:gap-4 sm:px-10"
> >
<div <div
class="relative flex justify-center after:absolute after:left-[50%] after:top-0 after:-z-10 after:border-l after:border-outline-gray-modals" class="relative flex justify-center after:absolute after:left-[50%] after:top-0 after:border-l after:border-outline-gray-modals"
:class="i != activities.length - 1 ? 'after:h-full' : 'after:h-4'" :class="i != activities.length - 1 ? 'after:h-full' : 'after:h-4'"
> >
<div <div
class="z-10 flex h-8 w-7 items-center justify-center bg-surface-white" class="z-[1] flex h-8 w-7 items-center justify-center bg-surface-white"
> >
<CommentIcon class="text-ink-gray-8" /> <CommentIcon class="text-ink-gray-8" />
</div> </div>
@ -72,11 +72,11 @@
class="activity grid grid-cols-[30px_minmax(auto,_1fr)] gap-4 px-3 sm:px-10" class="activity grid grid-cols-[30px_minmax(auto,_1fr)] gap-4 px-3 sm:px-10"
> >
<div <div
class="relative flex justify-center after:absolute after:left-[50%] after:top-0 after:-z-10 after:border-l after:border-outline-gray-modals" class="relative flex justify-center after:absolute after:left-[50%] after:top-0 after:border-l after:border-outline-gray-modals"
:class="i != activities.length - 1 ? 'after:h-full' : 'after:h-4'" :class="i != activities.length - 1 ? 'after:h-full' : 'after:h-4'"
> >
<div <div
class="z-10 flex h-8 w-7 items-center justify-center bg-surface-white text-ink-gray-8" class="z-[1] flex h-8 w-7 items-center justify-center bg-surface-white text-ink-gray-8"
> >
<MissedCallIcon <MissedCallIcon
v-if="call.status == 'No Answer'" v-if="call.status == 'No Answer'"
@ -116,11 +116,11 @@
> >
<div <div
v-if="['Activity', 'Emails'].includes(title)" v-if="['Activity', 'Emails'].includes(title)"
class="relative flex justify-center before:absolute before:left-[50%] before:top-0 before:-z-10 before:border-l before:border-outline-gray-modals" class="relative flex justify-center before:absolute before:left-[50%] before:top-0 before:border-l before:border-outline-gray-modals"
:class="[i != activities.length - 1 ? 'before:h-full' : 'before:h-4']" :class="[i != activities.length - 1 ? 'before:h-full' : 'before:h-4']"
> >
<div <div
class="z-10 flex h-7 w-7 items-center justify-center bg-surface-white" class="z-[1] flex h-7 w-7 items-center justify-center bg-surface-white"
:class="{ :class="{
'mt-2.5': ['communication'].includes(activity.activity_type), 'mt-2.5': ['communication'].includes(activity.activity_type),
'bg-surface-white': ['added', 'removed', 'changed'].includes( 'bg-surface-white': ['added', 'removed', 'changed'].includes(