Skip to content

Commit

Permalink
style: improve popup page adaptation in complex situations
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Mar 27, 2023
1 parent fe7c686 commit f247978
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"action": {
"default_popup": "popup.html"
},
"options_ui": {
"page": "popup.html",
"open_in_tab": true
},
"content_scripts": [
{
"matches": [
Expand Down
4 changes: 4 additions & 0 deletions src/manifest.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"browser_action": {
"default_popup": "popup.html"
},
"options_ui": {
"page": "popup.html",
"open_in_tab": true
},
"content_scripts": [
{
"matches": [
Expand Down
6 changes: 3 additions & 3 deletions src/popup/Popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function Donation() {
>
<img alt="buymeacoffee" src={bugmeacoffee} />
</a>
<hr />
<br />
<>
Wechat Pay
<img alt="wechatpay" src={wechatpay} />
Expand Down Expand Up @@ -465,7 +465,7 @@ function Popup() {

return (
<div className="container">
<form>
<form style="width:100%;">
<Tabs selectedTabClassName="popup-tab--selected">
<TabList>
<Tab className="popup-tab">General</Tab>
Expand Down Expand Up @@ -494,7 +494,7 @@ function Popup() {
)}
</Tabs>
</form>
<hr />
<br />
<Footer currentVersion={currentVersion} latestVersion={latestVersion} />
</div>
)
Expand Down
12 changes: 9 additions & 3 deletions src/popup/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@
}

.container {
width: 440px;
height: 560px;
display: flex;
flex-direction: column;
align-items: center;
min-width: 440px;
min-height: 560px;
width: 100%;
height: 100%;
padding: 20px;
overflow-y: auto;
}
Expand All @@ -44,7 +49,7 @@

.footer {
width: 90%;
position: absolute;
position: fixed;
bottom: 10px;
display: flex;
flex-direction: row;
Expand All @@ -54,6 +59,7 @@
border-radius: 5px;
padding: 6px;
z-index: 2147483647;
font-size: 12px;
}

.popup-tab {
Expand Down

0 comments on commit f247978

Please sign in to comment.