diff --git a/src/components/proxies/ProxyNodeCard.vue b/src/components/proxies/ProxyNodeCard.vue index 16d1ca1f..a1e0490a 100644 --- a/src/components/proxies/ProxyNodeCard.vue +++ b/src/components/proxies/ProxyNodeCard.vue @@ -3,7 +3,7 @@ ref="cardRef" :class=" twMerge( - 'flex min-h-9 cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2 text-xs sm:gap-2', + 'relative flex min-h-9 cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2', active ? 'bg-primary text-primary-content' : 'sm:hover:bg-base-300', isTruncated && 'tooltip tooltip-bottom', ) @@ -18,15 +18,23 @@ />
{{ node.name }}
- {{ typeDescription }} + + {{ typeDescription }} + @@ -71,14 +79,12 @@ const typeDescription = computed(() => { const type = typeFormatter(node.value.type) if (node.value.udp) { - if (isSmallScreen.value && twoColumnNodeForMobile.value) { - return `${type}:udp` - } return `${type} | udp` } return type }) +const tightMode = computed(() => isSmallScreen.value && twoColumnNodeForMobile.value) const handlerLatencyTest = async () => { if (isLatencyTesting.value) return diff --git a/src/components/rules/RuleCard.vue b/src/components/rules/RuleCard.vue index 1235ab37..33876f76 100644 --- a/src/components/rules/RuleCard.vue +++ b/src/components/rules/RuleCard.vue @@ -1,8 +1,12 @@ diff --git a/src/store/settings.ts b/src/store/settings.ts index 1e1cf88a..97b6be12 100644 --- a/src/store/settings.ts +++ b/src/store/settings.ts @@ -33,7 +33,7 @@ export const proxySortType = useStorage( PROXY_SORT_TYPE.DEFAULT, ) export const automaticDisconnection = useStorage('config/automatic-disconnection', true) -export const twoColumnNodeForMobile = useStorage('config/two-column-node-for-mobile', true) +export const twoColumnNodeForMobile = useStorage('config/two-column-for-mobile', true) export const truncateProxyName = useStorage('config/truncate-proxy-name', true) export const proxyPreviewType = useStorage('config/proxy-preview-type', PROXY_PREVIEW_TYPE.AUTO) export const hideUnavailableProxies = useStorage('config/hide-unavailable-proxies', false)