Skip to content

Commit 8a90adc

Browse files
author
Felix Breidenstein
committed
Set height on nested elements to avoid mutliple scrollbars
1 parent b081c74 commit 8a90adc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

popup.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
#main {
4646
font-size: 15px;
4747
padding-bottom: 5px;
48+
height: 100%;
49+
flex-direction: column;
4850
}
4951
#roleList {
5052
padding: 0;
@@ -97,7 +99,7 @@
9799
</style>
98100
</head>
99101
<body>
100-
<div style="display: flex">
102+
<div style="display: flex; height: 100%">
101103
<div class="mainPane" style="min-width: 280px">
102104
<div id="main" style="display: none">
103105
<div style="padding: 12px 6px 6px;">

src/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function main() {
8585
executeAction(tab.id, 'loadInfo', {}).then(userInfo => {
8686
if (userInfo) {
8787
loadFormList(url, userInfo, tab.id);
88-
document.getElementById('main').style.display = 'block';
88+
document.getElementById('main').style.display = 'flex';
8989
} else {
9090
const noMain = document.getElementById('noMain');
9191
const p = noMain.querySelector('p');

0 commit comments

Comments
 (0)