From 7617cd1dddc41e3ebe4842fb70bc667755b0ba2e Mon Sep 17 00:00:00 2001 From: Nate Date: Sun, 23 Mar 2025 00:25:01 -0700 Subject: [PATCH] adjust code block styles --- .../StepContainerPreToolbar.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx b/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx index 884a41805..46fa90d68 100644 --- a/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx +++ b/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx @@ -4,7 +4,11 @@ import { debounce } from "lodash"; import { useContext, useEffect, useRef, useState } from "react"; import styled from "styled-components"; import { v4 as uuidv4 } from "uuid"; -import { lightGray, vscEditorBackground } from "../.."; +import { + defaultBorderRadius, + vscCommandCenterInactiveBorder, + vscEditorBackground, +} from "../.."; import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { useWebviewListener } from "../../../hooks/useWebviewListener"; import { useAppSelector } from "../../../redux/hooks"; @@ -22,9 +26,9 @@ import GeneratingCodeLoader from "./GeneratingCodeLoader"; import RunInTerminalButton from "./RunInTerminalButton"; const TopDiv = styled.div` - outline: 0.5px solid rgba(153, 153, 152); + outline: 1px solid ${vscCommandCenterInactiveBorder}; outline-offset: -0.5px; - border-radius: 2.5px; + border-radius: ${defaultBorderRadius}; margin-bottom: 8px !important; background-color: ${vscEditorBackground}; min-width: 0; @@ -39,7 +43,7 @@ const ToolbarDiv = styled.div<{ isExpanded: boolean }>` padding: 4px 6px; margin: 0; border-bottom: ${({ isExpanded }) => - isExpanded ? `0.5px solid ${lightGray}80` : "inherit"}; + isExpanded ? `1px solid ${vscCommandCenterInactiveBorder}` : "inherit"}; `; export interface StepContainerPreToolbarProps {