Skip to content

Commit

Permalink
change usermessage display width
Browse files Browse the repository at this point in the history
  • Loading branch information
greywen committed Feb 27, 2025
1 parent 8096403 commit 3dc6fe8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/FE/components/ChatMessage/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ChatMessage: FC<Props> = memo(
<div
key={'user-message-' + message.id}
className={cn(
'prose w-full dark:prose-invert rounded-r-md group',
'prose w-full dark:prose-invert rounded-r-md group sm:w-[50vw] xl:w-[50vw]',
index > 0 && 'mt-6',
)}
>
Expand Down
14 changes: 0 additions & 14 deletions src/FE/components/ChatModelDropdownMenu/ChatModelDropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,11 @@ import {
DropdownMenuTrigger,
} from '@/components/ui/dropdown-menu';

import RegenerateModel from '../ChatMessage/RegenerateModel';

import { cn } from '@/lib/utils';

const ChatModelDropdownMenu = ({
models,
modelId,
modelName,
readonly,
showRegenerate,
content,
className,
hideIcon,
Expand Down Expand Up @@ -153,15 +148,6 @@ const ChatModelDropdownMenu = ({
);
})}
</DropdownMenuGroup>
{/* <RegenerateModel
hidden={!showRegenerate}
onRegenerate={(e) => {
const model = models.find((x) => x.modelId === modelId);
onChangeModel(model!);
e.stopPropagation();
}}
modelName={modelName}
/> */}
</DropdownMenuContent>
</DropdownMenu>
);
Expand Down
4 changes: 2 additions & 2 deletions src/FE/pages/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ html {
}

.prose {
max-width: calc(100vw - 552px) !important;
max-width: 100% !important;
}

@media (max-width: 640px) {
.prose {
width: 344px;
width : 344px;
}
}

Expand Down

0 comments on commit 3dc6fe8

Please sign in to comment.