Skip to content

Commit

Permalink
Fixed empty state image and message on overview page (#4852)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiewaese-uncharted authored Sep 19, 2024
1 parent c577865 commit d682b26
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<template>
<Editor v-model="editorContent" :class="{ readonly: !hasEditPermission }" :readonly="!hasEditPermission" />
<!-- empty state image -->
<section v-if="editorContent === '<h2><br></h2>'" class="emptyState">
<section v-if="editorContent.length === 0" class="emptyState">
<Vue3Lottie :animationData="EmptySeed" :height="150" loop autoplay />
<p class="helpMessage">Use this space however you like</p>
<p class="helpMessage"><strong>Use this space however you like.</strong></p>
<p class="helpMessage">Just click and start typing.</p>
</section>

<!-- empty state message -->
<Panel
v-if="showWelcomeMessage && editorContent === '<h2><br></h2>'"
v-if="showWelcomeMessage && editorContent.length === 0"
header="Hey there! Not sure where to start?"
class="welcomeMessage"
>
Expand Down Expand Up @@ -157,7 +158,7 @@ const showWelcomeMessage = ref(true);
.welcomeMessage {
position: absolute;
width: calc(100% - 300px);
width: calc(100% - 264px); /* 240px + 12px + 12px */
margin-top: 3.5rem;
margin-left: var(--gap-3);
padding: var(--gap-1) var(--gap-3);
Expand Down

0 comments on commit d682b26

Please sign in to comment.