|
| 1 | +import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog' |
1 | 2 | import { Button } from '@/components/ui/button' |
2 | 3 | import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form' |
3 | 4 | import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' |
4 | 5 | import { Separator } from '@/components/ui/separator' |
5 | | -import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog' |
6 | 6 | import { DEFAULT_SHADOWSOCKS_METHOD } from '@/constants/Proxies' |
7 | 7 | import { ShadowsocksMethods, XTLSFlows, useReconnectAllNode } from '@/service/api' |
| 8 | +import { queryClient } from '@/utils/query-client' |
8 | 9 | import { zodResolver } from '@hookform/resolvers/zod' |
9 | | -import { XIcon, Loader2, RefreshCcw } from 'lucide-react' |
| 10 | +import { Loader2, RefreshCcw, XIcon } from 'lucide-react' |
10 | 11 | import { useEffect, useState } from 'react' |
11 | 12 | import { useForm } from 'react-hook-form' |
12 | 13 | import { useTranslation } from 'react-i18next' |
13 | 14 | import { toast } from 'sonner' |
14 | 15 | import { z } from 'zod' |
15 | 16 | import { useSettingsContext } from './_dashboard.settings' |
16 | | -import { queryClient } from '@/utils/query-client' |
17 | 17 |
|
18 | 18 | // general settings validation schema |
19 | 19 | const generalSettingsSchema = z.object({ |
@@ -233,7 +233,7 @@ export default function General() { |
233 | 233 | <Separator className="my-4" /> |
234 | 234 |
|
235 | 235 | {/* 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"> |
237 | 237 | <div className="space-y-1"> |
238 | 238 | <h3 className="text-sm font-medium">{t('nodes.title', { defaultValue: 'Reconnect All Nodes' })}</h3> |
239 | 239 | <p className="text-xs text-muted-foreground">{t('nodes.reconnectinfo', { defaultValue: 'Refresh all nodes connections' })}</p> |
|
0 commit comments