From 83a20d7f8bfae923582e51caf76ab53c4eeeaaf3 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 2 Dec 2024 13:29:59 -0600 Subject: [PATCH] Update CodeToEditListItem.tsx --- .../CodeToEditCard/CodeToEditListItem.tsx | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/gui/src/components/CodeToEditCard/CodeToEditListItem.tsx b/gui/src/components/CodeToEditCard/CodeToEditListItem.tsx index 59f630c9a..b457d3a69 100644 --- a/gui/src/components/CodeToEditCard/CodeToEditListItem.tsx +++ b/gui/src/components/CodeToEditCard/CodeToEditListItem.tsx @@ -16,7 +16,6 @@ export interface CodeToEditListItemProps { onClickFilename: (codeToEdit: CodeToEdit) => void; } -// Easiest method to overwrite the top level styling of the markdown preview const NoPaddingWrapper = styled.div` > * { margin: 0 !important; @@ -67,7 +66,7 @@ export default function CodeToEditListItem({ onClick={() => setShowCodeSnippet((showCodeSnippet) => !showCodeSnippet)} >
@@ -82,22 +81,20 @@ export default function CodeToEditListItem({ {title} - {" "} - {/* Added flex-grow */} {fileSubpath}
-
-
+
+
{showCodeSnippet ? ( { e.stopPropagation(); setShowCodeSnippet(false); }} - className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-md rounded-sm p-0.5 hover:bg-opacity-20" + className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20" /> ) : ( )}
- { - e.stopPropagation(); - onDelete(code); - }} - className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-md rounded-sm p-0.5 hover:bg-opacity-20" - /> +
+ { + e.stopPropagation(); + onDelete(code); + }} + className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20" + /> +