소스 검색

Merge pull request #631 from sigseg5/main

Some adaptivity fixes in tinychat
Alex Cheema 6 달 전
부모
커밋
63318983de
2개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 14 0
      exo/tinychat/index.css
  2. 1 1
      exo/tinychat/index.html

+ 14 - 0
exo/tinychat/index.css

@@ -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
exo/tinychat/index.html

@@ -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>