Skip to content

Commit

Permalink
Add stop logos to abort button on web
Browse files Browse the repository at this point in the history
  • Loading branch information
abeatrix committed Jun 16, 2023
1 parent a0a2eb8 commit 10b7b1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
5 changes: 1 addition & 4 deletions client/web/src/cody/components/ChatUI/ChatUi.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
}

.transcript-item {
border-color: transparent;
border-top-width: 1px;
border-top-style: solid;
border-bottom-style: none !important; // Override the Transcript...last-child row
border: none !important; // Override the Transcript...last-child row
}

.transcript-action > ol {
Expand Down
17 changes: 13 additions & 4 deletions client/web/src/cody/components/ChatUI/ChatUi.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import React, { useCallback, useEffect, useRef, useState, useMemo } from 'react'

import { mdiClose, mdiSend, mdiArrowDown, mdiPencil, mdiThumbUp, mdiThumbDown, mdiCheck } from '@mdi/js'
import {
mdiClose,
mdiSend,
mdiArrowDown,
mdiPencil,
mdiThumbUp,
mdiThumbDown,
mdiCheck,
mdiStopCircleOutline,
} from '@mdi/js'
import classNames from 'classnames'
import useResizeObserver from 'use-resize-observer'

Expand Down Expand Up @@ -119,9 +128,9 @@ interface IAbortMessageInProgressProps {
const AbortMessageInProgress: React.FunctionComponent<IAbortMessageInProgressProps> = React.memo(
function AbortMessageInProgressButton({ onAbortMessageInProgress }) {
return (
<div className="d-flex justify-content-center w-100 mt-4 mb-2">
<Button onClick={onAbortMessageInProgress} variant="secondary" outline={true} size="sm">
Stop generating
<div className="d-flex justify-content-center w-100 mb-1">
<Button onClick={onAbortMessageInProgress} variant="secondary" outline={false} size="sm">
<Icon aria-label="Abort" svgPath={mdiStopCircleOutline} /> Stop generating
</Button>
</div>
)
Expand Down

0 comments on commit 10b7b1e

Please sign in to comment.