fix popup ui

This commit is contained in:
go0p
2026-08-06 15:11:35 +08:00
committed by go0p
parent 83381b9623
commit 4be4ab9101
5 changed files with 85 additions and 27 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import {createRoot} from 'react-dom/client';
import App from './App';
import '@/styles/global.css'
import './style.css';
const root = createRoot(document.getElementById('app')!);
root.render(<App />);
root.render(<App/>);
+3 -3
View File
@@ -42,8 +42,8 @@
}
.popup-container {
width: 320px;
min-height: 400px;
/*width: 320px;*/
/*min-height: 400px;*/
display: flex;
flex-direction: column;
padding: 0;
@@ -52,7 +52,7 @@
}
.popup-header {
background-color: #F28B44;
background-color: var(--yakit-primary);
color: white;
padding: 12px 16px;
text-align: center;
+21 -20
View File
@@ -1,25 +1,26 @@
import React from 'react';
import { ConfigProvider } from 'antd';
import { ProxySwitch } from '../../components/ProxySwitch';
import {ConfigProvider} from 'antd';
import {ProxySwitch} from '@/components/ProxySwitch';
import '@/styles/global.css'
import './App.css';
export default function App() {
return (
<ConfigProvider
theme={{
token: {
colorPrimary: "#F28B44",
},
}}
>
<div className="popup-container">
<header className="popup-header">
<h1>Yaklang 代理管理</h1>
</header>
<main className="popup-content">
<ProxySwitch />
</main>
</div>
</ConfigProvider>
);
return (
<ConfigProvider
theme={{
token: {
colorPrimary: "#F28B44",
},
}}
>
<div className="popup-container">
<header className="popup-header">
<h1>Yaklang 代理管理</h1>
</header>
<main className="popup-content">
<ProxySwitch/>
</main>
</div>
</ConfigProvider>
);
}
-2
View File
@@ -27,8 +27,6 @@ body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1 {