mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-09-11 12:00:52 +08:00
style: improve popup page adaptation in complex situations
This commit is contained in:
@@ -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": [
|
||||||
|
|||||||
@@ -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
@@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user