nsarrazin commited on
Commit
b3ec8c3
·
1 Parent(s): 72db8f3

fix(mobile): various mobile fixes

Browse files
src/lib/components/chat/ChatInput.svelte CHANGED
@@ -363,5 +363,6 @@
363
  font-family: inherit;
364
  box-sizing: border-box;
365
  line-height: 1.5;
 
366
  }
367
  </style>
 
363
  font-family: inherit;
364
  box-sizing: border-box;
365
  line-height: 1.5;
366
+ font-size: 16px;
367
  }
368
  </style>
src/lib/components/chat/ChatMessage.svelte CHANGED
@@ -141,13 +141,13 @@
141
  <img
142
  src="{base}/settings/assistants/{page.data.assistant._id}/avatar.jpg"
143
  alt="Avatar"
144
- class="mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg"
145
  />
146
  {:else}
147
  <img
148
  alt=""
149
  src="https://huggingface.co/avatars/2edb18bd0206c16b433841a47f53fa8e.svg"
150
- class="mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg"
151
  />
152
  {/if}
153
  <div
 
141
  <img
142
  src="{base}/settings/assistants/{page.data.assistant._id}/avatar.jpg"
143
  alt="Avatar"
144
+ class="mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg max-sm:hidden"
145
  />
146
  {:else}
147
  <img
148
  alt=""
149
  src="https://huggingface.co/avatars/2edb18bd0206c16b433841a47f53fa8e.svg"
150
+ class="mt-5 h-3 w-3 flex-none select-none rounded-full shadow-lg max-sm:hidden"
151
  />
152
  {/if}
153
  <div
src/lib/components/chat/OpenReasoningResults.svelte CHANGED
@@ -58,7 +58,11 @@
58
  class="flex items-center gap-1 truncate whitespace-nowrap text-[.82rem] text-gray-400"
59
  class:animate-pulse={loading}
60
  >
61
- {summary}
 
 
 
 
62
  </dt>
63
  </dl>
64
  <CarbonCaretDown class="size-6 text-gray-400 transition-transform group-open:rotate-180" />
 
58
  class="flex items-center gap-1 truncate whitespace-nowrap text-[.82rem] text-gray-400"
59
  class:animate-pulse={loading}
60
  >
61
+ {summary.length > 33
62
+ ? summary.substring(0, 33) + "..."
63
+ : summary.endsWith("...")
64
+ ? summary
65
+ : summary + "..."}
66
  </dt>
67
  </dl>
68
  <CarbonCaretDown class="size-6 text-gray-400 transition-transform group-open:rotate-180" />