Skip to content

Commit 6bbc087

Browse files
fix: reset all nodes buttons size on mobile
1 parent 8bef7f5 commit 6bbc087

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dashboard/src/pages/_dashboard.settings.general.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog'
12
import { Button } from '@/components/ui/button'
23
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form'
34
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
45
import { Separator } from '@/components/ui/separator'
5-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog'
66
import { DEFAULT_SHADOWSOCKS_METHOD } from '@/constants/Proxies'
77
import { ShadowsocksMethods, XTLSFlows, useReconnectAllNode } from '@/service/api'
8+
import { queryClient } from '@/utils/query-client'
89
import { zodResolver } from '@hookform/resolvers/zod'
9-
import { XIcon, Loader2, RefreshCcw } from 'lucide-react'
10+
import { Loader2, RefreshCcw, XIcon } from 'lucide-react'
1011
import { useEffect, useState } from 'react'
1112
import { useForm } from 'react-hook-form'
1213
import { useTranslation } from 'react-i18next'
1314
import { toast } from 'sonner'
1415
import { z } from 'zod'
1516
import { useSettingsContext } from './_dashboard.settings'
16-
import { queryClient } from '@/utils/query-client'
1717

1818
// general settings validation schema
1919
const generalSettingsSchema = z.object({
@@ -233,7 +233,7 @@ export default function General() {
233233
<Separator className="my-4" />
234234

235235
{/* Reconnect All Nodes Section */}
236-
<div className="flex items-start justify-between gap-4 py-3">
236+
<div className="flex flex-col md:flex-row gap-4 py-3 md:items-start md:justify-between">
237237
<div className="space-y-1">
238238
<h3 className="text-sm font-medium">{t('nodes.title', { defaultValue: 'Reconnect All Nodes' })}</h3>
239239
<p className="text-xs text-muted-foreground">{t('nodes.reconnectinfo', { defaultValue: 'Refresh all nodes connections' })}</p>

0 commit comments

Comments
 (0)