Skip to content

Commit 5bc758a

Browse files
(fix:ui) minor adjustments
1 parent 27b24f1 commit 5bc758a

File tree

6 files changed

+25
-11
lines changed

6 files changed

+25
-11
lines changed

frontend/src/components/Input.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ const Input = ({
3535
<div className={`relative ${className}`}>
3636
<input
3737
ref={inputRef}
38-
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]}`}
38+
className={`h-[42px] w-full rounded-full px-3 py-1
39+
bg-transparent outline-none
40+
text-jet dark:text-bright-gray
41+
placeholder-transparent
42+
${colorStyles[colorVariant]}
43+
${borderStyles[borderVariant]}
44+
[&:-webkit-autofill]:bg-transparent
45+
[&:-webkit-autofill]:appearance-none
46+
[&:-webkit-autofill_selected]:bg-transparent`}
3947
type={type}
4048
id={id}
4149
name={name}

frontend/src/conversation/ConversationBubble.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const ConversationBubble = forwardRef<
155155
/>
156156
<div className="flex items-center justify-end gap-2">
157157
<button
158-
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"
158+
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"
159159
onClick={() => setIsEditClicked(false)}
160160
>
161161
{t('conversation.edit.cancel')}

frontend/src/conversation/sharedConversationSlice.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ export const sharedConversationSlice = createSlice({
231231
return state;
232232
}
233233
state.status = 'failed';
234-
state.queries[state.queries.length - 1].error =
235-
'Something went wrong. Please check your internet connection.';
234+
state.queries[state.queries.length - 1].error = 'Something went wrong';
236235
});
237236
},
238237
});

frontend/src/index.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,19 +490,26 @@ input:-webkit-autofill,
490490
input:-webkit-autofill:hover,
491491
input:-webkit-autofill:focus,
492492
input:-webkit-autofill:active {
493-
-webkit-text-fill-color: #343541 !important; /* jet color */
494-
-webkit-box-shadow: 0 0 0 30px white inset !important;
493+
-webkit-text-fill-color: #343541 !important;
494+
-webkit-box-shadow: 0 0 0 30px transparent inset !important;
495495
transition: background-color 5000s ease-in-out 0s;
496+
caret-color: #343541;
496497
}
497498

498499
/* Dark mode specific autofill styles */
499500
.dark input:-webkit-autofill,
500501
.dark input:-webkit-autofill:hover,
501502
.dark input:-webkit-autofill:focus,
502503
.dark input:-webkit-autofill:active {
503-
-webkit-text-fill-color: white !important;
504-
-webkit-box-shadow: 0 0 0 30px #202124 inset !important; /* raisin-black */
505-
transition: background-color 5000s ease-in-out 0s;
504+
-webkit-text-fill-color: #E5E7EB !important;
505+
-webkit-box-shadow: 0 0 0 30px transparent inset !important;
506+
background-color: transparent !important;
507+
caret-color: #E5E7EB;
508+
}
509+
510+
/* Additional autocomplete dropdown styles for dark mode */
511+
.dark input:-webkit-autofill::first-line {
512+
color: #E5E7EB;
506513
}
507514

508515
.inputbox-style {

frontend/src/modals/AddToolModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default function AddToolModal({
107107
<Spinner />
108108
</div>
109109
) : (
110-
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 auto-rows-fr">
110+
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 auto-rows-fr pb-2">
111111
{availableTools.map((tool, index) => (
112112
<div
113113
role="button"

frontend/src/modals/ConfirmationModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function ConfirmationModal({
2626

2727
const submitButtonClasses =
2828
variant === 'danger'
29-
? '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'
29+
? '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'
3030
: 'rounded-3xl bg-purple-30 px-5 py-2 text-sm text-lotion transition-all hover:bg-violets-are-blue';
3131

3232
return (

0 commit comments

Comments
 (0)