chore: improve placeholder component styles

This commit is contained in:
Liyas Thomas
2023-12-10 14:34:30 +05:30
committed by Andrew Bastin
parent 4ac8a117ef
commit c0c0c37a67
41 changed files with 482 additions and 410 deletions

View File

@@ -117,7 +117,13 @@
alt="No invites"
text="No invites"
>
<HoppButtonSecondary label="Add new" filled @click="addNewMember" />
<template #body>
<HoppButtonSecondary
label="Add new"
filled
@click="addNewMember"
/>
</template>
</HoppSmartPlaceholder>
</div>
<div

View File

@@ -15,15 +15,17 @@
v-if="team?.teamMembers?.length === 0"
text="No members in this team. Add members to this team to collaborate"
>
<HoppButtonSecondary
:icon="IconUserPlus"
:label="t('teams.add_members')"
@click="
() => {
showInvite = !showInvite;
}
"
/>
<template #body>
<HoppButtonSecondary
:icon="IconUserPlus"
:label="t('teams.add_members')"
@click="
() => {
showInvite = !showInvite;
}
"
/>
</template>
</HoppSmartPlaceholder>
<div v-else class="divide-y divide-dividerLight">
<div

View File

@@ -41,10 +41,12 @@
v-if="team && pendingInvites?.length === 0"
text="No pending invites"
>
<div v-if="!fetching && error" class="flex flex-col items-center p-4">
<icon-lucide-help-circle class="mb-4 svg-icons" />
Something went wrong. Please try again later.
</div>
<template #body>
<div v-if="!fetching && error" class="flex flex-col items-center p-4">
<icon-lucide-help-circle class="mb-4 svg-icons" />
{{ t('error.something_went_wrong') }}
</div>
</template>
</HoppSmartPlaceholder>
</div>
</div>