diff --git a/client/src/components/Chat/Messages/Message.tsx b/client/src/components/Chat/Messages/Message.tsx index e4a4e9a85f..fc52a89584 100644 --- a/client/src/components/Chat/Messages/Message.tsx +++ b/client/src/components/Chat/Messages/Message.tsx @@ -27,7 +27,10 @@ const MessageContainer = React.memo( ); const PlaceholderRow = React.memo(({ isLast, isCard }: { isLast: boolean; isCard?: boolean }) => { - if (!isLast && !isCard) { + if (!isCard) { + return null; + } + if (!isLast) { return null; } return
; @@ -99,7 +102,7 @@ const MessageRender = React.memo( 'final-completion group mx-auto flex flex-1 gap-3 text-base', isCard ? 'relative w-full gap-1 rounded-lg border border-border-medium bg-surface-primary-alt p-2 md:w-1/2 md:gap-3 md:p-4' - : '', + : 'md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]', isLatest ? 'bg-surface-secondary' : '', isLast && !isSubmittingFamily && isCard ? 'cursor-pointer transition-colors duration-300' @@ -212,9 +215,7 @@ export default function Message(props: TMessageProps) {
) : (
-
- -
+
)} diff --git a/client/src/components/Prompts/AdvancedSwitch.tsx b/client/src/components/Prompts/AdvancedSwitch.tsx index abebd301ff..017b6f6389 100644 --- a/client/src/components/Prompts/AdvancedSwitch.tsx +++ b/client/src/components/Prompts/AdvancedSwitch.tsx @@ -1,7 +1,8 @@ import { useRecoilState, useSetRecoilState } from 'recoil'; -import { Tabs, TabsList, TabsTrigger } from '~/components/ui'; import { useLocalize } from '~/hooks'; +import { cn } from '~/utils'; import store from '~/store'; + const { PromptsEditorMode, promptsEditorMode, alwaysMakeProd } = store; const AdvancedSwitch = () => { @@ -10,29 +11,35 @@ const AdvancedSwitch = () => { const setAlwaysMakeProd = useSetRecoilState(alwaysMakeProd); return ( - { - value === PromptsEditorMode.SIMPLE && setAlwaysMakeProd(true); - setMode(value); - }} - > - - +
+ +
+ ); }; diff --git a/client/src/components/Prompts/Description.tsx b/client/src/components/Prompts/Description.tsx index 8a79d000d5..23c0e85237 100644 --- a/client/src/components/Prompts/Description.tsx +++ b/client/src/components/Prompts/Description.tsx @@ -50,7 +50,7 @@ const Description = ({ placeholder={localize('com_ui_description_placeholder')} value={description} onChange={handleInputChange} - className="w-full rounded-lg border-none bg-transparent p-1 text-text-primary placeholder:text-text-tertiary placeholder:underline placeholder:underline-offset-2 focus:bg-surface-tertiary focus:outline-none focus:ring-0 md:w-96" + className="w-full rounded-lg border-none bg-surface-tertiary p-1 text-text-primary placeholder:text-text-secondary-alt focus:bg-surface-tertiary focus:outline-none focus:ring-0 md:w-96" /> {!disabled && ( {`${charCount}/${MAX_LENGTH}`} diff --git a/client/src/components/Prompts/PromptForm.tsx b/client/src/components/Prompts/PromptForm.tsx index f9160301a8..4530e11121 100644 --- a/client/src/components/Prompts/PromptForm.tsx +++ b/client/src/components/Prompts/PromptForm.tsx @@ -278,7 +278,7 @@ const PromptForm = () => { )}
{/* Left Section */} -
+
{isLoadingPrompts ? ( ) : ( diff --git a/client/src/components/Prompts/PromptsView.tsx b/client/src/components/Prompts/PromptsView.tsx index 09a931d358..089f2dbb4a 100644 --- a/client/src/components/Prompts/PromptsView.tsx +++ b/client/src/components/Prompts/PromptsView.tsx @@ -46,7 +46,7 @@ export default function PromptsView() {
diff --git a/client/src/components/Prompts/SkeletonForm.tsx b/client/src/components/Prompts/SkeletonForm.tsx index f4dcbd68b7..f97838c0d0 100644 --- a/client/src/components/Prompts/SkeletonForm.tsx +++ b/client/src/components/Prompts/SkeletonForm.tsx @@ -8,7 +8,7 @@ export default function SkeletonForm() {
{/* Left Section */} -
+
diff --git a/client/src/mobile.css b/client/src/mobile.css index ee8b79d8a6..10ac81333d 100644 --- a/client/src/mobile.css +++ b/client/src/mobile.css @@ -287,4 +287,8 @@ .slow-pulse { animation: slowPulse 2.5s ease-in-out infinite; +} + +.scrollbar-gutter-stable { + scrollbar-gutter: stable; } \ No newline at end of file diff --git a/client/src/style.css b/client/src/style.css index 0703e375c2..6fb425958f 100644 --- a/client/src/style.css +++ b/client/src/style.css @@ -25,6 +25,7 @@ html { --text-primary:var(--gray-800); --text-secondary:var(--gray-600); + --text-secondary-alt:var(--gray-500); --text-tertiary:var(--gray-500); --surface-primary:var(--white); --surface-primary-alt:var(--white); @@ -40,6 +41,7 @@ html { .dark { --text-primary:var(--gray-100); --text-secondary:var(--gray-300); + --text-secondary-alt:var(--gray-400); --text-tertiary:var(--gray-500); --surface-primary:var(--gray-900); --surface-primary-alt:var(--gray-850); diff --git a/client/tailwind.config.cjs b/client/tailwind.config.cjs index 1809a2ef48..c22c57191f 100644 --- a/client/tailwind.config.cjs +++ b/client/tailwind.config.cjs @@ -66,6 +66,7 @@ module.exports = { 'brand-purple': '#ab68ff', 'text-primary': 'var(--text-primary)', 'text-secondary': 'var(--text-secondary)', + 'text-secondary-alt': 'var(--text-secondary-alt)', 'text-tertiary': 'var(--text-tertiary)', 'surface-primary': 'var(--surface-primary)', 'surface-primary-alt': 'var(--surface-primary-alt)',