Merge pull request #631 from sigseg5/main

Some adaptivity fixes in tinychat
This commit is contained in:
Alex Cheema
2025-01-26 19:20:58 +00:00
committed by GitHub
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -139,6 +139,14 @@ main {
padding: 0.5rem 1rem;
border-radius: 20px;
}
@media(max-width: 1482px) {
.messages {
padding-left: 16px;
padding-right: 16px;
}
}
.message-role-assistant {
background-color: var(--secondary-color);
margin-right: auto;
@@ -149,6 +157,12 @@ main {
background-color: var(--primary-color);
color: #000;
}
.message-role-user p {
white-space: pre-wrap;
word-wrap: break-word;
}
.download-progress {
position: fixed;
bottom: 11rem;
+1 -1
View File
@@ -193,7 +193,7 @@
otx = $event.changedTouches[0].clientX;
" class="history" x-data="{ otx: 0, trigger: 75 }">
<h3 x-text="new Date(_state.time).toLocaleString()"></h3>
<p x-text="$truncate(_state.messages[0].content, 80)"></p>
<p x-text="$truncate(_state.messages[0].content, 76)"></p>
<!-- delete button -->
<button @click.stop="removeHistory(_state);" class="history-delete-button">
<i class="fas fa-trash"></i>