Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(error-state): do not set default height #35

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/components/EmptyState.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<template>
<div
:class="[
'flex',
horizontal ? 'flex-row items-center' : 'max-w-xs flex-col items-center text-center',
'flex gap-2',
horizontal ? 'flex-row items-start' : 'max-w-xs flex-col items-center text-center',
]">
<dotlottie-player
autoplay="true"
:class="[horizontal ? 'w-auto max-w-[16rem]' : 'mb-6 h-64']"
:class="[horizontal ? 'w-auto max-w-[12rem]' : 'mb-6 h-64']"
:loop="loop"
:src="animation" />
<div :class="['flex flex-col', horizontal ? 'items-start' : 'items-center text-center']">
<div :class="['flex flex-col', horizontal ? 'mt-10 items-start' : 'items-center text-center']">
<slot name="title">
<h3 v-if="title" class="mt-2 whitespace-pre-line text-base font-medium text-gray-900">
<h3 v-if="title" class="whitespace-pre-line text-base font-medium text-gray-900">
{{ title }}
</h3>
</slot>
Expand Down
1 change: 0 additions & 1 deletion src/views/Private/Members/MembersDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
<LoadingSpinner v-if="state.isFetchingPresences" class="m-auto h-12 w-12" />
<ErrorState
v-else-if="state.fetchPresencesErrorMessage"
class="h-40"
:description="state.fetchPresencesErrorMessage"
horizontal
:title="$t('members.detail.attendance.onFetch.fail')">
Expand Down