(fix:ui) minor adjustments

This commit is contained in:
ManishMadan2882 committed 2025-03-13 20:39:17 +05:30
1 parent 27b24f19de
commit 5bc758aa2d
6 files changed
+25 -11

No files matched your search

+9 -1
View File
@@ -35,7 +35,15 @@ const Input = ({
<div className={`relative ${className}`}> <div className={`relative ${className}`}>
<input <input
ref={inputRef} ref={inputRef}
className={`peer h-[42px] w-full rounded-full px-3 py-1 bg-transparent outline-none dark:text-white placeholder-transparent ${colorStyles[colorVariant]} ${borderStyles[borderVariant]}`} className={`h-[42px] w-full rounded-full px-3 py-1
bg-transparent outline-none
text-jet dark:text-bright-gray
placeholder-transparent
${colorStyles[colorVariant]}
${borderStyles[borderVariant]}
[&:-webkit-autofill]:bg-transparent
[&:-webkit-autofill]:appearance-none
[&:-webkit-autofill_selected]:bg-transparent`}
type={type} type={type}
id={id} id={id}
name={name} name={name}
@@ -155,7 +155,7 @@ const ConversationBubble = forwardRef<
/> />
<div className="flex items-center justify-end gap-2"> <div className="flex items-center justify-end gap-2">
<button <button
className="px-4 py-2 text-purple-30 text-sm hover:text-chinese-black-2 hover:bg-gainsboro dark:hover:bg-onyx-2 transition-colors rounded-full" className="px-4 py-2 text-purple-30 text-sm font-semibold hover:text-chinese-black-2 dark:hover:text-[#B9BCBE] hover:bg-gainsboro dark:hover:bg-onyx-2 transition-colors rounded-full"
onClick={() => setIsEditClicked(false)} onClick={() => setIsEditClicked(false)}
> >
{t('conversation.edit.cancel')} {t('conversation.edit.cancel')}
@@ -231,8 +231,7 @@ export const sharedConversationSlice = createSlice({
return state; return state;
} }
state.status = 'failed'; state.status = 'failed';
state.queries[state.queries.length - 1].error = state.queries[state.queries.length - 1].error = 'Something went wrong';
'Something went wrong. Please check your internet connection.';
}); });
}, },
}); });
+12 -5
View File
@@ -490,9 +490,10 @@ input:-webkit-autofill,
input:-webkit-autofill:hover, input:-webkit-autofill:hover,
input:-webkit-autofill:focus, input:-webkit-autofill:focus,
input:-webkit-autofill:active { input:-webkit-autofill:active {
-webkit-text-fill-color: #343541 !important; /* jet color */ -webkit-text-fill-color: #343541 !important;
-webkit-box-shadow: 0 0 0 30px white inset !important; -webkit-box-shadow: 0 0 0 30px transparent inset !important;
transition: background-color 5000s ease-in-out 0s; transition: background-color 5000s ease-in-out 0s;
caret-color: #343541;
} }
/* Dark mode specific autofill styles */ /* Dark mode specific autofill styles */
@@ -500,9 +501,15 @@ input:-webkit-autofill:active {
.dark input:-webkit-autofill:hover, .dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus, .dark input:-webkit-autofill:focus,
.dark input:-webkit-autofill:active { .dark input:-webkit-autofill:active {
-webkit-text-fill-color: white !important; -webkit-text-fill-color: #E5E7EB !important;
-webkit-box-shadow: 0 0 0 30px #202124 inset !important; /* raisin-black */ -webkit-box-shadow: 0 0 0 30px transparent inset !important;
transition: background-color 5000s ease-in-out 0s; background-color: transparent !important;
caret-color: #E5E7EB;
}
/* Additional autocomplete dropdown styles for dark mode */
.dark input:-webkit-autofill::first-line {
color: #E5E7EB;
} }
.inputbox-style { .inputbox-style {
+1 -1
View File
@@ -107,7 +107,7 @@ export default function AddToolModal({
<Spinner /> <Spinner />
</div> </div>
) : ( ) : (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 auto-rows-fr"> <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 auto-rows-fr pb-2">
{availableTools.map((tool, index) => ( {availableTools.map((tool, index) => (
<div <div
role="button" role="button"
+1 -1
View File
@@ -26,7 +26,7 @@ export default function ConfirmationModal({
const submitButtonClasses = const submitButtonClasses =
variant === 'danger' variant === 'danger'
? '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-rosso-corsa px-5 py-2 text-sm text-lotion transition-all hover:bg-red-2000 hover:font-bold tracking-[0.019em] hover:tracking-normal'
: 'rounded-3xl bg-purple-30 px-5 py-2 text-sm text-lotion transition-all hover:bg-violets-are-blue'; : 'rounded-3xl bg-purple-30 px-5 py-2 text-sm text-lotion transition-all hover:bg-violets-are-blue';
return ( return (