Skip to content

Commit

Permalink
Make iframe fluid (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwhmeikle committed Jun 1, 2022
1 parent ff5ca9d commit d90d937
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/PopupHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ class PopupHandler {
z-index: 2;
position: relative;
background-color: white;
height: 600px;
width: 600px;
border-radius: 5px;
}
#${CONTENT_ID} iframe {
width: 100%;
height: 100%;
}
`;

Expand Down Expand Up @@ -95,8 +103,6 @@ class PopupHandler {
iframe.setAttribute("name", "authsignal");
iframe.setAttribute("title", "Authsignal multi-factor authentication challenge");
iframe.setAttribute("src", challengeUrl);
iframe.setAttribute("width", "600");
iframe.setAttribute("height", "600");
iframe.setAttribute("frameborder", "0");

const dialogContent = document.querySelector(`#${CONTENT_ID}`);
Expand Down

0 comments on commit d90d937

Please sign in to comment.