Skip to content

Commit

Permalink
fix: proxy group grid style
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso committed Feb 25, 2025
1 parent cde403e commit 460d426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/proxies/ProxyGroupForMobile.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="relative h-20"
class="relative h-20 cursor-pointer"
ref="cardRef"
@click="handlerGroupClick"
>
Expand All @@ -17,7 +17,6 @@
]"
:style="[
modalMode && {
'max-height': '50dvh',
width: 'calc(100vw - 1rem)',
},
activeMode && {
Expand Down Expand Up @@ -79,6 +78,7 @@
<div
v-if="modalMode"
class="grid flex-1 grid-cols-2 gap-2 overflow-y-auto overflow-x-hidden p-2"
style="max-height: calc(50dvh - 5rem)"
>
<ProxyNodeCard
v-for="node in diplayAllContent ? renderProxies : renderProxies.slice(0, 16)"
Expand All @@ -87,7 +87,6 @@
:group-name="proxyGroup.name"
:active="node === proxyGroup.now"
@click.stop="handlerProxySelect(node)"
class="max-h-14"
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/proxies/ProxyNodeCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"
@contextmenu.stop.prevent="handlerLatencyTest"
>
<div class="flex w-full flex-1 items-center gap-1">
<div class="flex w-full flex-1 items-start gap-1">
<ProxyIcon
v-if="node.icon"
class="shrink-0"
Expand Down

0 comments on commit 460d426

Please sign in to comment.