From 9f7f8d0161103c222747b4d65f330057edd87d81 Mon Sep 17 00:00:00 2001 From: kunish Date: Fri, 11 Oct 2024 01:38:17 +0800 Subject: [PATCH] feat(proxies): add multi-column render back --- src/components/Collapse.tsx | 2 +- src/components/ProxyNodeCard.tsx | 74 ++++++++++++++++---------------- src/pages/Proxies.tsx | 4 +- tailwind.config.ts | 8 ++-- 4 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/components/Collapse.tsx b/src/components/Collapse.tsx index 2fd66bf..e406b9d 100644 --- a/src/components/Collapse.tsx +++ b/src/components/Collapse.tsx @@ -41,7 +41,7 @@ export const Collapse: ParentComponent = (props) => {
{children(() => props.children)()} diff --git a/src/components/ProxyNodeCard.tsx b/src/components/ProxyNodeCard.tsx index 37cb074..3e6a736 100644 --- a/src/components/ProxyNodeCard.tsx +++ b/src/components/ProxyNodeCard.tsx @@ -43,49 +43,47 @@ export const ProxyNodeCard = (props: { onClick={onClick} >
- - {proxyName} - +
+ {proxyName} -
-
-
- {formatProxyType(proxyNode()?.type)} -
- - -
{specialType()}
-
- - -
IPv6
-
+
+ {formatProxyType(proxyNode()?.type)}
+
-
- +
+ +
{specialType()}
+
-
- void proxyLatencyTest(proxyName, proxyNode().provider) - }} - /> -
+
+ + +
diff --git a/src/pages/Proxies.tsx b/src/pages/Proxies.tsx index cadb547..2a2766f 100644 --- a/src/pages/Proxies.tsx +++ b/src/pages/Proxies.tsx @@ -173,7 +173,7 @@ export default () => {
-
+
{(proxyGroup) => { const sortedProxyNames = createMemo(() => @@ -278,7 +278,7 @@ export default () => { -
+
{(proxyProvider) => { const sortedProxyNames = createMemo(() => diff --git a/tailwind.config.ts b/tailwind.config.ts index 5d38df3..4269336 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -6,9 +6,11 @@ export default { plugins: [daisyui], daisyui: { themes: true }, theme: { - fontFamily: { - twemoji: ['system-ui', 'Twemoji Mozilla', 'Fira Sans', 'monospace'], - 'no-twemoji': ['system-ui', 'Fira Sans', 'monospace'], + extend: { + fontFamily: { + twemoji: ['system-ui', 'Twemoji Mozilla', 'Fira Sans', 'monospace'], + 'no-twemoji': ['system-ui', 'Fira Sans', 'monospace'], + }, }, }, } as Config