(fix:general) perfect labels, delete btn

This commit is contained in:
ManishMadan2882
2025-03-12 22:52:08 +05:30
parent 93de4065c7
commit 5c7a3a515c
2 changed files with 14 additions and 13 deletions

View File

@@ -26,7 +26,7 @@ export default function ConfirmationModal({
const submitButtonClasses =
variant === 'danger'
? 'rounded-3xl bg-rosso-corsa px-5 py-2 text-sm text-lotion transition-all hover:bg-red-2000'
? 'rounded-3xl bg-rosso-corsa px-5 py-2 text-sm text-lotion transition-all hover:bg-red-2000 hover:font-bold tracking-[0.015em] hover:tracking-normal'
: 'rounded-3xl bg-purple-30 px-5 py-2 text-sm text-lotion transition-all hover:bg-violets-are-blue';
return (

View File

@@ -82,11 +82,11 @@ export default function General() {
changeLanguage(selectedLanguage?.value);
}, [selectedLanguage, changeLanguage]);
return (
<div className="mt-12 flex flex-col gap-6">
<div className="mt-12 flex flex-col gap-4">
{' '}
<div className="flex flex-col gap-6">
<div className="flex flex-col gap-4">
{' '}
<label className="font-bold text-jet dark:text-bright-gray">
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.selectTheme')}
</label>
<Dropdown
@@ -103,8 +103,8 @@ export default function General() {
border="border"
/>
</div>
<div className="flex flex-col gap-6">
<label className="font-bold text-jet dark:text-bright-gray">
<div className="flex flex-col gap-4">
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.selectLanguage')}
</label>
<Dropdown
@@ -121,8 +121,8 @@ export default function General() {
border="border"
/>
</div>
<div className="flex flex-col gap-6">
<label className="font-bold text-jet dark:text-bright-gray">
<div className="flex flex-col gap-4">
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.chunks')}
</label>
<Dropdown
@@ -134,8 +134,8 @@ export default function General() {
border="border"
/>
</div>
<div className="flex flex-col gap-6">
<label className="font-bold text-jet dark:text-bright-gray">
<div className="flex flex-col gap-4">
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.convHistory')}
</label>
<Dropdown
@@ -159,7 +159,7 @@ export default function General() {
border="border"
/>
</div>
<div className="flex flex-col gap-6">
<div className="flex flex-col gap-4">
<Prompts
prompts={prompts}
selectedPrompt={selectedPrompt}
@@ -169,10 +169,11 @@ export default function General() {
setPrompts={setPrompts}
/>
</div>
<hr className="border-t border-silver dark:border-silver/40" />
<hr className="border-t w-[calc(min(665px,100%))] my-4 border-silver dark:border-silver/40" />
<div className="flex flex-col gap-2">
<button
className="flex w-56 cursor-pointer items-center justify-between rounded-3xl border border-solid border-rosso-corsa bg-transparent px-5 py-3 text-rosso-corsa transition-colors hover:bg-rosso-corsa hover:text-white dark:hover:text-white"
title={t('settings.general.deleteAllLabel')}
className="flex font-medium text-sm w-fit cursor-pointer items-center justify-between rounded-3xl border border-solid border-rosso-corsa bg-transparent px-5 py-3 text-rosso-corsa transition-colors hover:bg-rosso-corsa hover:text-white hover:font-bold tracking-[0.015em] hover:tracking-normal"
onClick={() => dispatch(setModalStateDeleteConv('ACTIVE'))}
>
{t('settings.general.deleteAllBtn')}