feature: add terminal/preview layout button

This commit is contained in:
Akhileshrangani4
2024-10-12 19:46:32 -04:00
parent f863f2f763
commit b6569550fc
2 changed files with 39 additions and 35 deletions

View File

@ -33,10 +33,6 @@ ref: React.Ref<{
return (
<>
<div
className={`${collapsed ? "h-full" : "h-10"
} select-none w-full flex gap-2`}
>
<div className="h-8 rounded-md px-3 bg-secondary flex items-center w-full justify-between">
<div className="text-xs">Preview</div>
<div className="flex space-x-1 translate-x-1">
@ -65,18 +61,6 @@ ref: React.Ref<{
)}
</div>
</div>
</div>
{collapsed ? null : (
<div className="w-full grow rounded-md overflow-hidden bg-foreground">
<iframe
key={iframeKey}
ref={frameRef}
width={"100%"}
height={"100%"}
src={src}
/>
</div>
)}
</>
)
})