Skip to content

Commit

Permalink
Fix: files misalignment when name too long (#18)
Browse files Browse the repository at this point in the history
* Fix: files misalignment when name too long

* fix: adding break-all to q&a and links
  • Loading branch information
BuonDavide authored Oct 1, 2024
1 parent 766d1ab commit 32f0827
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Element/ChatbotFileItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}"
@click.stop="download"
>
<div class="flex space-x-3.5 items-center">
<div class="flex space-x-3.5 items-center break-words break-all">
<div>
<Icon name="ph:file-pdf-light" class="text-4xl" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/Element/ChatbotLinkItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}"
>
<div>
<a class="text-lg leading-snug break-words" target="_blank" :href="item.cmetadata?.url">{{ item.cmetadata?.url }}</a>
<a class="text-lg leading-snug break-words break-all" target="_blank" :href="item.cmetadata?.url">{{ item.cmetadata?.url }}</a>
<p v-if="linkIsError" class="text-xs italic">Errore nella lettura del contenuto - codice errore {{ linkIsError }}</p>
</div>
<div class="px-4 flex items-start justify-between space-x-4">
Expand Down
2 changes: 1 addition & 1 deletion components/Element/ChatbotQuestionItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div v-else>
<div class="px-4 pt-3.5 pb-4 flex items-start justify-between space-x-4 bg-gradient-to-br from-slate-700 to-slate-950 text-white">
<h2 class="text-lg leading-snug break-words" v-html="highlight(title, searchTerm)"></h2>
<h2 class="text-lg leading-snug break-words break-all" v-html="highlight(title, searchTerm)"></h2>
<div class="px-4 flex items-start justify-between space-x-4">
<button
class="button-transparent text-white hover:from-white hover:to-white hover:text-sky-500"
Expand Down

0 comments on commit 32f0827

Please sign in to comment.