chore: fix styles in "OpenAI Key" div (#228)

chore: do nothing if the name of the renamed dialog contains nothing.
chore: fix some styles
chore: remake conversation settings on mobile
This commit is contained in:
Danil Shishkevich
2023-03-27 22:20:33 +07:00
committed by GitHub
parent a1743c82cc
commit 2269403806
2 changed files with 13 additions and 11 deletions
+3 -3
View File
@@ -111,7 +111,7 @@ export const Chat: FC<Props> = memo(
<div className="overflow-none relative flex-1 bg-white dark:bg-[#343541]">
{!(apiKey || serverSideApiKeyIsSet) ? (
<div className="mx-auto flex h-full w-[300px] flex-col justify-center space-y-6 sm:w-[500px]">
<div className="mx-auto mb-5">
<div className="mx-auto mb-5 text-gray-800 dark:text-gray-100">
<IconKey size={36} />
</div>
<div className="text-center text-2xl font-semibold text-gray-800 dark:text-gray-100">
@@ -201,8 +201,8 @@ export const Chat: FC<Props> = memo(
/>
</div>
{showSettings && (
<div className="mx-auto flex w-[200px] flex-col space-y-10 pt-8 sm:w-[300px]">
<div className="flex h-full flex-col space-y-4 rounded border border-neutral-500 p-2">
<div className="flex flex-col space-y-10 md:max-w-xl md:gap-6 md:py-3 md:pt-6 md:mx-auto lg:max-w-2xl lg:px-0 xl:max-w-3xl">
<div className="flex h-full flex-col space-y-4 border-b md:rounded-lg md:border border-neutral-200 p-4 dark:border-neutral-600">
<ModelSelect
model={conversation.model}
models={models}