fix popup header

This commit is contained in:
Gabe Yuan
2023-09-04 23:24:50 +08:00
parent 40adf85b20
commit 6ec16e1f98

View File

@@ -96,8 +96,12 @@ export default function Popup({ setShowPopup, translator: tran }) {
if (!rule) {
return (
<Box minWidth={300}>
<Header />
<Divider />
{isExt && (
<>
<Header />
<Divider />
</>
)}
<Stack sx={{ p: 2 }} spacing={3}>
<Button variant="text" onClick={handleOpenSetting}>
{i18n("setting")}
@@ -111,8 +115,12 @@ export default function Popup({ setShowPopup, translator: tran }) {
return (
<Box minWidth={300}>
<Header />
<Divider />
{isExt && (
<>
<Header />
<Divider />
</>
)}
<Stack sx={{ p: 2 }} spacing={2}>
<Stack
direction="row"