update action buttons
This commit is contained in:
parent
fc3159d478
commit
12fba164ae
3 changed files with 8 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"author": "Continue Dev, Inc",
|
||||
"version": "0.9.236",
|
||||
"version": "0.9.237",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import { BarsArrowDownIcon, TrashIcon } from "@heroicons/react/24/outline";
|
||||
import { ChatHistoryItem } from "core";
|
||||
import { stripImages } from "core/llm/images";
|
||||
import { CopyIconButton } from "../gui/CopyIconButton";
|
||||
import HeaderButtonWithToolTip from "../gui/HeaderButtonWithToolTip";
|
||||
import { useSelector } from "react-redux";
|
||||
import { RootState } from "../../redux/store";
|
||||
import { ChatHistoryItem } from "core";
|
||||
import FeedbackButtons from "./FeedbackButtons";
|
||||
import { CopyIconButton } from "../gui/CopyIconButton";
|
||||
import HeaderButtonWithToolTip from "../gui/HeaderButtonWithToolTip";
|
||||
import EditActions from "./EditActions";
|
||||
import FeedbackButtons from "./FeedbackButtons";
|
||||
|
||||
export interface ResponseActionsProps {
|
||||
isTruncated: boolean;
|
||||
|
|
@ -35,7 +35,7 @@ export default function ResponseActions({
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="mx-2 mb-2 flex h-7 cursor-default items-center justify-end space-x-1 pb-0 text-xs text-gray-400">
|
||||
<div className="mx-2 flex cursor-default items-center justify-end space-x-1 pb-0 text-xs text-gray-400">
|
||||
{isTruncated && (
|
||||
<HeaderButtonWithToolTip
|
||||
tabIndex={-1}
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ import { useDispatch, useSelector } from "react-redux";
|
|||
import styled from "styled-components";
|
||||
import { vscBackground } from "..";
|
||||
import useUIConfig from "../../hooks/useUIConfig";
|
||||
import { deleteMessage } from "../../redux/slices/stateSlice";
|
||||
import { RootState } from "../../redux/store";
|
||||
import { getFontSize } from "../../util";
|
||||
import StyledMarkdownPreview from "../markdown/StyledMarkdownPreview";
|
||||
import ResponseActions from "./ResponseActions";
|
||||
import { deleteMessage } from "../../redux/slices/stateSlice";
|
||||
|
||||
interface StepContainerProps {
|
||||
item: ChatHistoryItem;
|
||||
|
|
@ -98,9 +98,7 @@ export default function StepContainer(props: StepContainerProps) {
|
|||
)}
|
||||
</ContentDiv>
|
||||
{/* We want to occupy space in the DOM regardless of whether the actions are visible to avoid jank on */}
|
||||
<div
|
||||
className={`${shouldHideActions && "hidden"} transition-opacity duration-300 ease-in-out`}
|
||||
>
|
||||
<div className={`mt-2 h-7 transition-opacity duration-300 ease-in-out`}>
|
||||
{!shouldHideActions && (
|
||||
<ResponseActions
|
||||
isTruncated={isTruncated}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue