Skip to content

Commit

Permalink
Fix viewgeneratedprompts
Browse files Browse the repository at this point in the history
  • Loading branch information
oslaman committed May 8, 2024
1 parent fa0088b commit 96ce406
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions frontend/src/components/ViewGeneratedPrompts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<img src="../assets/6Coders-logo-original.png" alt="Logo" class="img-fluid" style="max-width: 100px;">
<h4 class="mt-5">Come ti possiamo aiutare?</h4>
</div>
<div v-else class="w-100 text-black">
<div id="message-list" v-else class="w-100 text-black">
<div v-for="(message, index) in messages" :key="index" class="border-bottom">
<div v-if="message.type === 'user'" class="w-100 p-3 text-black">
<i class="bi bi-person-fill me-2"></i>
Expand All @@ -17,18 +17,18 @@
<div v-else-if="message.type === 'response'" class="w-100 p-3 text-black bg-light border-start border-end">
<i class="bi bi-robot me-2"></i>
<strong>Response</strong>
<p style="white-space: pre-line">{{ message.text }}</p>
<i class="bi bi-clipboard me-2 copy-icon" @click="copyToClipboard(message.text)"></i>
<p>{{ message.text }}</p>
<i class="bi bi-clipboard me-2 copy-icon" @click="copyToClipboard(message.text)" data-cy="copy-button"></i>
</div>
<div v-if="status" class="w-100 text-center text-black">
<div class="spinner-border text-primary mt-2" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div v-if="status" class="w-100 text-center text-black">
<div class="spinner-border text-primary mt-2" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<div id="container" ref="messagebox"></div>
</div>
<div id="container" ref="messagebox"></div>
</div>
</div>
</div>
</template>

<script>
Expand Down

0 comments on commit 96ce406

Please sign in to comment.