diff --git a/gui/src/components/FileIcon.tsx b/gui/src/components/FileIcon.tsx
index 6f96e498d..0f2b729cb 100644
--- a/gui/src/components/FileIcon.tsx
+++ b/gui/src/components/FileIcon.tsx
@@ -45,7 +45,7 @@ export default function FileIcon({ filename, height, width }: FileIconProps) {
height: height,
fill: color,
flexShrink: 0,
- display: "block",
+ display: "flex",
}}
/>
);
diff --git a/gui/src/components/markdown/StepContainerPreToolbar/FileInfo.tsx b/gui/src/components/markdown/StepContainerPreToolbar/FileInfo.tsx
index c2f09a24a..06defbeac 100644
--- a/gui/src/components/markdown/StepContainerPreToolbar/FileInfo.tsx
+++ b/gui/src/components/markdown/StepContainerPreToolbar/FileInfo.tsx
@@ -1,8 +1,8 @@
-import FileIcon from "../../FileIcon";
+import { inferResolvedUriFromRelativePath } from "core/util/ideUtils";
+import { getLastNPathParts } from "core/util/uri";
import { useContext } from "react";
import { IdeMessengerContext } from "../../../context/IdeMessenger";
-import { getLastNPathParts, getUriPathBasename } from "core/util/uri";
-import { inferResolvedUriFromRelativePath } from "core/util/ideUtils";
+import FileIcon from "../../FileIcon";
export interface FileInfoProps {
relativeFilepath: string;
@@ -23,17 +23,18 @@ const FileInfo = ({ relativeFilepath, range }: FileInfoProps) => {
}
return (
-
-
+
+
-
- {getLastNPathParts(relativeFilepath, 1)}
- {range && ` ${range}`}
-
+
+ asdfasdfasdfasdfasdfasdfasdf
+ {getLastNPathParts(relativeFilepath, 1)}
+ {range && ` ${range}`}
+
);
};
diff --git a/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx b/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx
index 26fdb6261..776192e45 100644
--- a/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx
+++ b/gui/src/components/markdown/StepContainerPreToolbar/StepContainerPreToolbar.tsx
@@ -25,6 +25,8 @@ import GeneratingCodeLoader from "./GeneratingCodeLoader";
import RunInTerminalButton from "./RunInTerminalButton";
const TopDiv = styled.div`
+ display: flex;
+ flex-direction: column;
outline: 1px solid ${vscCommandCenterInactiveBorder};
outline-offset: -0.5px;
border-radius: ${defaultBorderRadius};
@@ -37,7 +39,6 @@ const ToolbarDiv = styled.div<{ isExpanded: boolean }>`
display: flex;
justify-content: space-between;
align-items: center;
- background: inherit;
font-size: ${getFontSize() - 2}px;
padding: 4px 6px;
margin: 0;
@@ -181,31 +182,27 @@ export default function StepContainerPreToolbar(
return (
-
-
+
+
- {isGeneratingCodeBlock && (
+ {isGeneratingCodeBlock ? (
- )}
-
- {!isGeneratingCodeBlock && (
+ ) : (
<>
{isTerminalCodeBlock(props.language, props.codeBlockContent) ? (