Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
fix: ui glitch (COR-0000) (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
gillyb authored Nov 14, 2024
1 parent 2bb236a commit 6d69cb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/chat/src/components/MessageInput/MessageInput.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const inputContainer = recipe({
border: `1px solid ${COLORS.NEUTRAL_LIGHT[100]}`,
backgroundColor: COLORS.white,
boxShadow: '0px 3px 4px 0px rgba(0, 0, 0, 0.02), 0px 8px 42px -16px rgba(0, 0, 0, 0.08)',
transition: transition(['border', 'box-shadow', 'border-radius', 'transform']),
transition: transition(['border', 'box-shadow', 'border-radius', 'opacity']),
selectors: {
'&:hover': {
cursor: 'text',
Expand All @@ -38,7 +38,7 @@ export const inputContainer = recipe({
},
hasEnded: {
true: {
transform: 'translateY(calc(100% + 40px))',
opacity: 0,
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions packages/chat/src/components/NewChat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const NewChat: React.FC<INewChat> = ({
}
};

const handleResume = (): void => setAlert(false);
const handleResume = (_: any): void => setAlert(false);

const headerActions = useMemo<HeaderActionProps[]>(() => {
const items: HeaderActionProps[] = [{ svg: 'reset', onClick: handleClose }];
Expand Down Expand Up @@ -128,7 +128,7 @@ export const NewChat: React.FC<INewChat> = ({
<Prompt
visible={hasAlert || hasEnded}
showOverlay={hasAlert && !hasEnded}
accept={{ label: 'Start new chat', onClick: chain(onEnd, handleResume, onStart) }}
accept={{ label: 'Start new chat', onClick: chain(handleResume, onEnd, onStart) }}
cancel={hasEnded ? undefined : { label: 'Cancel', onClick: handleResume }}
/>
</div>
Expand Down

0 comments on commit 6d69cb9

Please sign in to comment.