feat: Running tasks and steps UI (#165)
This commit is contained in:
16
skyvern-frontend/src/components/ZoomableImage.tsx
Normal file
16
skyvern-frontend/src/components/ZoomableImage.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import Zoom from "react-medium-image-zoom";
|
||||
import { AspectRatio } from "@/components/ui/aspect-ratio";
|
||||
|
||||
type HTMLImageElementProps = React.ComponentProps<"img">;
|
||||
|
||||
function ZoomableImage(props: HTMLImageElementProps) {
|
||||
return (
|
||||
<Zoom>
|
||||
<AspectRatio ratio={16 / 9}>
|
||||
<img {...props} />
|
||||
</AspectRatio>
|
||||
</Zoom>
|
||||
);
|
||||
}
|
||||
|
||||
export { ZoomableImage };
|
||||
Reference in New Issue
Block a user