Skip to content

Commit

Permalink
fix(ui): chat question*answer margin left
Browse files Browse the repository at this point in the history
  • Loading branch information
wwayne committed May 28, 2024
1 parent 8f64753 commit fae654a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/chat/chat-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function ChatPanel({
return (
<div className={className}>
<ButtonScrollToBottom container={container} />
<div className={`mx-auto ${chatMaxWidthClass}`}>
<div className={`md:px-4 mx-auto ${chatMaxWidthClass}`}>
<div className="flex h-10 items-center justify-center gap-2">
{isLoading ? (
<Button
Expand Down
4 changes: 2 additions & 2 deletions ee/tabby-ui/components/chat/question-answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function UserMessageCard(props: { message: UserMessage }) {

return (
<div
className={cn('group relative mb-4 flex items-start md:-ml-12')}
className={cn('group relative mb-4 flex items-start md:-ml-4')}
{...props}
>
<div className="shrink-0 select-none rounded-full border bg-background shadow">
Expand Down Expand Up @@ -178,7 +178,7 @@ function AssistantMessageCard(props: AssistantMessageCardProps) {

return (
<div
className={cn('group relative mb-4 flex items-start md:-ml-12')}
className={cn('group relative mb-4 flex items-start md:-ml-4')}
{...rest}
>
<div className="shrink-0 select-none rounded-full border bg-background shadow">
Expand Down

0 comments on commit fae654a

Please sign in to comment.