Karnan-se commented on issue #32357:
URL: https://github.com/apache/superset/issues/32357#issuecomment-3845658042
you can bypass default styling by targeting the dynamically generated iframe
directly. This allows you to inject custom CSS (like making it responsive or
borderless) without needing specific props from the SDK.
useEffect(() => {
const applyStyles = setInterval(() => {
// Select the iframe generated by the SDK
const iframe = document.querySelector("iframe[src*='embedded']");
if (iframe) {
Object.assign(iframe.style, {
width: "100%",
height: "100vh",
border: "none",
borderRadius: "8px" // Example of extra custom styling
});
clearInterval(applyStyles);
}
}, 200);
return () => clearInterval(applyStyles);
}, [status]);
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]