Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/atg/Editor/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Sidebar = ({

return (
<div
className={`flex flex-col h-full text-sm rounded-bl-md${
className={`w-2/12 flex flex-col h-full text-sm rounded-bl-md${
theme ? "text-secondary-300 bg-neutral-200" : "text-white bg-[#21252b]"
}`}
>
Expand Down
33 changes: 1 addition & 32 deletions components/atg/Editor/editor/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ import React, { useEffect, useState, useRef } from "react";
import Editor, { useMonaco } from "@monaco-editor/react";
import * as monaco from "monaco-editor";
import { File } from "../utils/file-manager";
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import { useEditTestSubscription } from "@/app/api/automatic-test-generator/Subscription";
export const Code = ({
selectedFile,
showSideBannerBool,
RemoveSideBanner,
settingCodeTheme,
isFullScreen,
selectedFileName,
Expand Down Expand Up @@ -220,7 +216,7 @@ export const Code = ({

return (
<div
className={`${showSideBannerBool ? "":""} ${isFullScreen ? "h-full" : "h-[75vh]"} ${
className={`${isFullScreen ? "h-full" : "h-[75vh]"} ${
settingCodeTheme ? "border border-gray-300" : ""
}`}
>
Expand All @@ -235,33 +231,6 @@ export const Code = ({
onChange={handleFileChange}
onMount={(editor) => (editorRef.current = editor)} // Store editor instance
/>
{!showSideBannerBool && (
<div
onMouseEnter={() => setShowText(true)}
onMouseLeave={() => setShowText(false)}
className={`p-2 absolute z-10 hover:cursor-pointer border border-gray-500 border-b-0 right-0 top-1/2 bg-secondary-300 flex items-center justify-center shadow-lg transition-all duration-500`}
style={{
transform: "translateY(-50%)",
height: "3rem",
width: showText ? "200px" : "40px",
}} // Adjust width values as needed
onClick={() => {
RemoveSideBanner();
setShowText(false);
}}
>
<ChevronLeftIcon className="text-gray-50" />
<div
className={`overflow-hidden transition-width duration-500 ${
showText ? "w-full" : "w-0"
}`}
>
<p className={`text-gray-50 font-bold ml-2 text-sm`}>
Side Content
</p>
</div>
</div>
)}
</div>
);
};
Loading