style: improve popup page adaptation in complex situations

This commit is contained in:
josc146
2023-03-27 22:59:07 +08:00
parent b98eaaf14d
commit 6a02cbc876
4 changed files with 20 additions and 6 deletions
+4
View File
@@ -25,6 +25,10 @@
"action": { "action": {
"default_popup": "popup.html" "default_popup": "popup.html"
}, },
"options_ui": {
"page": "popup.html",
"open_in_tab": true
},
"content_scripts": [ "content_scripts": [
{ {
"matches": [ "matches": [
+4
View File
@@ -25,6 +25,10 @@
"browser_action": { "browser_action": {
"default_popup": "popup.html" "default_popup": "popup.html"
}, },
"options_ui": {
"page": "popup.html",
"open_in_tab": true
},
"content_scripts": [ "content_scripts": [
{ {
"matches": [ "matches": [
+3 -3
View File
@@ -391,7 +391,7 @@ function Donation() {
> >
<img alt="buymeacoffee" src={bugmeacoffee} /> <img alt="buymeacoffee" src={bugmeacoffee} />
</a> </a>
<hr /> <br />
<> <>
Wechat Pay Wechat Pay
<img alt="wechatpay" src={wechatpay} /> <img alt="wechatpay" src={wechatpay} />
@@ -465,7 +465,7 @@ function Popup() {
return ( return (
<div className="container"> <div className="container">
<form> <form style="width:100%;">
<Tabs selectedTabClassName="popup-tab--selected"> <Tabs selectedTabClassName="popup-tab--selected">
<TabList> <TabList>
<Tab className="popup-tab">General</Tab> <Tab className="popup-tab">General</Tab>
@@ -494,7 +494,7 @@ function Popup() {
)} )}
</Tabs> </Tabs>
</form> </form>
<hr /> <br />
<Footer currentVersion={currentVersion} latestVersion={latestVersion} /> <Footer currentVersion={currentVersion} latestVersion={latestVersion} />
</div> </div>
) )
+9 -3
View File
@@ -24,8 +24,13 @@
} }
.container { .container {
width: 440px; display: flex;
height: 560px; flex-direction: column;
align-items: center;
min-width: 440px;
min-height: 560px;
width: 100%;
height: 100%;
padding: 20px; padding: 20px;
overflow-y: auto; overflow-y: auto;
} }
@@ -44,7 +49,7 @@
.footer { .footer {
width: 90%; width: 90%;
position: absolute; position: fixed;
bottom: 10px; bottom: 10px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@@ -54,6 +59,7 @@
border-radius: 5px; border-radius: 5px;
padding: 6px; padding: 6px;
z-index: 2147483647; z-index: 2147483647;
font-size: 12px;
} }
.popup-tab { .popup-tab {