Skip to content

Commit

Permalink
小窗登录尺寸修复 (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
leafage-collb authored Aug 2, 2023
1 parent c1f7892 commit 9ebc1ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/dashboard-front/src/components/auth/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,20 @@
display: inline-block;
background: #fff;
border: 0;
width: 700px;
height: 510px;
width: 390px;
height: 390px;
padding-right: 5px;
margin: -225px auto auto -225px;
top: 50%;
left: 50%;
position: relative;
z-index: 10002;
border-radius: 4px;
overflow: hidden;
iframe {
text-align: center;
margin-left: 0;
margin-top: -5px;
margin-left: -30px;
margin-top: -30px;
border: none;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/dashboard-front/src/components/auth/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
return
}
this.iframeSrc = url
const iframeWidth = data.width
const iframeWidth = data.width || 390
if (iframeWidth) {
this.iframeWidth = iframeWidth
}
const iframeHeight = data.height
const iframeHeight = data.height || 390
if (iframeHeight) {
this.iframeHeight = iframeHeight
}
Expand Down

0 comments on commit 9ebc1ca

Please sign in to comment.