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": {
"default_popup": "popup.html"
},
"options_ui": {
"page": "popup.html",
"open_in_tab": true
},
"content_scripts": [
{
"matches": [
+4
View File
@@ -25,6 +25,10 @@
"browser_action": {
"default_popup": "popup.html"
},
"options_ui": {
"page": "popup.html",
"open_in_tab": true
},
"content_scripts": [
{
"matches": [
+3 -3
View File
@@ -391,7 +391,7 @@ function Donation() {
>
<img alt="buymeacoffee" src={bugmeacoffee} />
</a>
<hr />
<br />
<>
Wechat Pay
<img alt="wechatpay" src={wechatpay} />
@@ -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>
@@ -494,7 +494,7 @@ function Popup() {
)}
</Tabs>
</form>
<hr />
<br />
<Footer currentVersion={currentVersion} latestVersion={latestVersion} />
</div>
)
+9 -3
View File
@@ -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;
}
@@ -44,7 +49,7 @@
.footer {
width: 90%;
position: absolute;
position: fixed;
bottom: 10px;
display: flex;
flex-direction: row;
@@ -54,6 +59,7 @@
border-radius: 5px;
padding: 6px;
z-index: 2147483647;
font-size: 12px;
}
.popup-tab {