Skip to content

Commit

Permalink
fix: 去掉嵌入脚本@scope 样式 手机端不支持@scope
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Mar 18, 2024
1 parent f7b9677 commit 5abf2aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/application/template/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function initMaxkbStyle(root){
style=document.createElement('style')
style.type='text/css'
style.innerText= `
@scope {/* 放大 */
/* 放大 */
#maxkb .maxkb-enlarge {
width: 50%!important;
height: 100%!important;
Expand Down Expand Up @@ -284,7 +284,7 @@ function initMaxkbStyle(root){
to {
height: 600px;
}
}}`
}`
root.appendChild(style)
}

Expand Down
4 changes: 2 additions & 2 deletions ui/public/embeb.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function initMaxkbStyle(root){
style=document.createElement('style')
style.type='text/css'
style.innerText= `
@scope {/* 放大 */
/* 放大 */
#maxkb .maxkb-enlarge {
width: 50%!important;
height: 100%!important;
Expand Down Expand Up @@ -292,7 +292,7 @@ function initMaxkbStyle(root){
to {
height: 600px;
}
}}`
}`
root.appendChild(style)
}

Expand Down

0 comments on commit 5abf2aa

Please sign in to comment.