Skip to content

Commit 79d7df1

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

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

popup.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
font-family: "Segoe UI", Arial, Meiryo, sans-serif;
1111
max-width: 600px;
1212
max-height: 600px;
13+
min-height: 480px;
1314
}
1415
.optionMenu {
1516
list-style: none;
@@ -45,6 +46,8 @@
4546
#main {
4647
font-size: 15px;
4748
padding-bottom: 5px;
49+
height: 100%;
50+
flex-direction: column;
4851
}
4952
#roleList {
5053
padding: 0;
@@ -97,7 +100,7 @@
97100
</style>
98101
</head>
99102
<body>
100-
<div style="display: flex">
103+
<div style="display: flex; height: 100%">
101104
<div class="mainPane" style="min-width: 280px">
102105
<div id="main" style="display: none">
103106
<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)