Skip to content

Commit

Permalink
adjust prompt modal style
Browse files Browse the repository at this point in the history
  • Loading branch information
greywen committed Dec 4, 2024
1 parent 6d2d079 commit 0038efc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FE/components/Chat/Temperature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const TemperatureSlider: FC<Props> = ({
value={[temperature]}
onValueChange={handleChange}
/>
<ul className="w mt-2 pb-8 flex justify-between px-[24px] text-neutral-900 dark:text-neutral-100">
<ul className="mt-2 pb-8 flex justify-between px-[24px] text-sm">
<li className="flex justify-center">
<span className="absolute">{t('Precise')}</span>
</li>
Expand Down
4 changes: 2 additions & 2 deletions src/FE/components/Promptbar/components/PromptModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import useTranslation from '@/hooks/useTranslation';
import { PromptVariables } from '@/utils/promptVariable';

import { UserRole } from '@/types/adminApis';
import { DEFAULT_TEMPERATURE } from '@/types/chat';
import { Prompt } from '@/types/prompt';

import { TemperatureSlider } from '@/components/Chat/Temperature';
Expand All @@ -26,7 +27,6 @@ import FormTextarea from '@/components/ui/form/textarea';
import { HomeContext } from '@/contexts/Home.context';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';
import { DEFAULT_TEMPERATURE } from '@/types/chat';

interface IProps {
prompt: Prompt;
Expand Down Expand Up @@ -80,7 +80,7 @@ export const PromptModal = (props: IProps) => {

return (
<Dialog open={true} onOpenChange={onClose}>
<DialogContent>
<DialogContent className="min-w-[375px] w-2/5">
<DialogHeader>
<DialogTitle>{t('Edit Prompt')}</DialogTitle>
</DialogHeader>
Expand Down

0 comments on commit 0038efc

Please sign in to comment.