refac: styling

This commit is contained in:
Timothy J. Baek 2024-04-30 16:00:44 -07:00
parent 6318282873
commit bf2ff47df0
3 changed files with 59 additions and 61 deletions

View file

@ -389,7 +389,7 @@
</div> </div>
{/if} {/if}
<div class="w-full"> <div class="w-full absolute bottom-0">
<div class="px-2.5 -mb-0.5 mx-auto inset-x-0 bg-transparent flex justify-center"> <div class="px-2.5 -mb-0.5 mx-auto inset-x-0 bg-transparent flex justify-center">
<div class="flex flex-col max-w-3xl w-full"> <div class="flex flex-col max-w-3xl w-full">
<div class="relative"> <div class="relative">

View file

@ -277,7 +277,7 @@
// }; // };
</script> </script>
<div class="h-full"> <div class="h-full flex">
{#if messages.length == 0} {#if messages.length == 0}
<Placeholder <Placeholder
models={selectedModels} models={selectedModels}
@ -297,7 +297,7 @@
}} }}
/> />
{:else} {:else}
<div class="pt-2 pb-10"> <div class="pt-2 pb-28">
{#key chatId} {#key chatId}
{#each messages as message, messageIdx} {#each messages as message, messageIdx}
<div class=" w-full"> <div class=" w-full">
@ -355,7 +355,7 @@
{/each} {/each}
{#if bottomPadding} {#if bottomPadding}
<div class=" mb-10" /> <div class=" mb-20" />
{/if} {/if}
{/key} {/key}
</div> </div>

View file

@ -24,9 +24,8 @@
</script> </script>
{#if models.length > 0} {#if models.length > 0}
<div class=" text-center py-24 md:py-36"> <div class="m-auto w-full max-w-3xl px-8 pb-24">
<div class="m-auto max-w-3xl px-8"> <div class="flex justify-start">
<div class="flex justify-start mt-8">
<div class="flex -space-x-4 mb-0.5"> <div class="flex -space-x-4 mb-0.5">
{#each models as model, modelIdx} {#each models as model, modelIdx}
<button <button
@ -83,9 +82,8 @@
</div> </div>
</div> </div>
<div class=" max-w-full"> <div class=" w-full">
<Suggestions {suggestionPrompts} {submitPrompt} /> <Suggestions {suggestionPrompts} {submitPrompt} />
</div> </div>
</div> </div>
</div>
{/if} {/if}