quick layout fix on mobile
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -324,10 +324,10 @@
|
|
324 |
</div>
|
325 |
<div class="relative divide-y divide-gray-200 dark:divide-gray-800" on:keydown={onKeydown}>
|
326 |
<div
|
327 |
-
class="flex h-[calc(100dvh-5rem-120px)] divide-x divide-gray-200 *:w-full md:h-[calc(100dvh-5rem)] md:pt-3 dark:divide-gray-800"
|
328 |
>
|
329 |
{#each session.conversations as conversation, conversationIdx}
|
330 |
-
<div>
|
331 |
{#if compareActive}
|
332 |
<PlaygroundConversationHeader
|
333 |
{models}
|
|
|
324 |
</div>
|
325 |
<div class="relative divide-y divide-gray-200 dark:divide-gray-800" on:keydown={onKeydown}>
|
326 |
<div
|
327 |
+
class="flex h-[calc(100dvh-5rem-120px)] divide-x divide-gray-200 overflow-x-auto *:w-full max-sm:w-dvw md:h-[calc(100dvh-5rem)] md:pt-3 dark:divide-gray-800"
|
328 |
>
|
329 |
{#each session.conversations as conversation, conversationIdx}
|
330 |
+
<div class="max-sm:min-w-full">
|
331 |
{#if compareActive}
|
332 |
<PlaygroundConversationHeader
|
333 |
{models}
|
src/lib/components/InferencePlayground/InferencePlaygroundConversationHeader.svelte
CHANGED
@@ -55,8 +55,8 @@
|
|
55 |
|
56 |
<div
|
57 |
class="{conversationIdx === 0
|
58 |
-
? 'mr-4'
|
59 |
-
: 'mx-4'} flex h-11 flex-none items-center gap-2 whitespace-nowrap rounded-lg border border-gray-200/80 bg-white pl-3 pr-2 text-sm leading-none shadow-sm *:flex-none dark:border-white/5 dark:bg-gray-800/70 dark:hover:bg-gray-800"
|
60 |
>
|
61 |
<Avatar orgName={nameSpace} size="md" />
|
62 |
<button class="!flex-1 self-stretch text-left hover:underline" on:click={() => (modelSelectorOpen = true)}
|
|
|
55 |
|
56 |
<div
|
57 |
class="{conversationIdx === 0
|
58 |
+
? 'mr-4 max-sm:ml-4'
|
59 |
+
: 'mx-4'} flex h-11 flex-none items-center gap-2 whitespace-nowrap rounded-lg border border-gray-200/80 bg-white pl-3 pr-2 text-sm leading-none shadow-sm *:flex-none max-sm:mt-4 dark:border-white/5 dark:bg-gray-800/70 dark:hover:bg-gray-800"
|
60 |
>
|
61 |
<Avatar orgName={nameSpace} size="md" />
|
62 |
<button class="!flex-1 self-stretch text-left hover:underline" on:click={() => (modelSelectorOpen = true)}
|