Skip to content
Closed
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
54 changes: 28 additions & 26 deletions components/atg/Editor/editor/code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,32 +236,34 @@ export const Code = ({
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
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",
}}
onClick={() => {
RemoveSideBanner();
setShowText(false);
}}
>
<div className="flex flex-row items-center justify-start">
<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 whitespace-nowrap`}>
Side Content
</p>
</div>
</div>
</div>
)}
</div>
);
};
Loading