Skip to content

Commit

Permalink
popup: remove main min-width
Browse files Browse the repository at this point in the history
fixes #152
  • Loading branch information
AprilSylph committed Jun 7, 2021
1 parent 2e4151c commit ce14ec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/browser_action/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

html {
display: flex;
flex-direction: column;
align-items: stretch;
background-color: var(--light-grey);
}

Expand All @@ -39,10 +41,6 @@ body {
overflow-y: scroll;
}

main {
min-width: 350px;
}

header {
display: flex;
flex-direction: column;
Expand Down
6 changes: 4 additions & 2 deletions src/browser_action/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ document.getElementById('filter').addEventListener('input', event => {
const versionElement = document.getElementById('version');
versionElement.textContent = `v${browser.runtime.getManifest().version} (Beta)`;

const main = document.querySelector('main');
main.style.minWidth = `${main.getBoundingClientRect().width}px`;
window.onload = () => {
const main = document.querySelector('main');
main.style.minWidth = `${main.getBoundingClientRect().width}px`;
};

0 comments on commit ce14ec9

Please sign in to comment.