Skip to content

Commit

Permalink
popup new height
Browse files Browse the repository at this point in the history
  • Loading branch information
woodybury committed Nov 25, 2024
1 parent d193b59 commit 6dc4abc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui/extension/app/scripts/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const popupApp = async () => {
// set body styles based on user theme
document.body.setAttribute(
'style',
`background-color: ${backgroundColor}; margin: 0; padding: 0; width: 330px; height: 606px; overflow: hidden;` // hide scrollbar on popup, inherit iframe scroll only
`background-color: ${backgroundColor}; margin: 0; padding: 0; width: 330px; height: 650px; overflow: hidden;` // hide scrollbar on popup, inherit iframe scroll only
)
const styleElement = document.createElement('style')
styleElement.textContent = 'html::-webkit-scrollbar{display:none !important}' + 'body::-webkit-scrollbar{display:none !important}'
Expand All @@ -18,7 +18,7 @@ const popupApp = async () => {
// set iframe styles based on user theme
iframe.setAttribute(
'style',
`background-color: ${backgroundColor}; width: 330px; height: 606px; border: none; margin: 0; padding: 0; overflow: hidden;` // 4px buffer seems needed to hide unnecessary scrollbars
`background-color: ${backgroundColor}; width: 330px; height: 650px; border: none; margin: 0; padding: 0; overflow: hidden;` // 4px buffer seems needed to hide unnecessary scrollbars
)
document.body.appendChild(iframe)
await bindPopup(iframe)
Expand Down
2 changes: 1 addition & 1 deletion ui/public/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script src="/static/js/main.js"></script>
</head>
<body
style="width: 330px; height: 606px; margin: 0; padding: 0; overflow: hidden;"
style="width: 330px; height: 650px; margin: 0; padding: 0; overflow: hidden;"
>
<noscript>You need to enable JavaScript to run this app. Echo.</noscript>
<browsers-unbounded
Expand Down

0 comments on commit 6dc4abc

Please sign in to comment.