* Use responsive iframe control to charts * Move external Grafana link to Dashboard page * Remove unused embedded style class * Add button label
This commit is contained in:
26
src/components/Controls/ResponsiveIFrame/index.jsx
Normal file
26
src/components/Controls/ResponsiveIFrame/index.jsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import React from "react";
|
||||
|
||||
const ResponsiveIFrame = (props) => {
|
||||
const { classes, src, title } = props;
|
||||
|
||||
return (
|
||||
<div className={classes.embeddedWrapper}>
|
||||
<iframe
|
||||
style={{
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
left: 0,
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
}}
|
||||
title={title}
|
||||
src={src}
|
||||
frameBorder="0"
|
||||
></iframe>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ResponsiveIFrame;
|
||||
Reference in New Issue
Block a user