Skip to content

Commit e16b34f

Browse files
committed
chore: better margin for host modal adress and port row
1 parent 56acbb0 commit e16b34f

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

dashboard/src/components/dialogs/host-modal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,8 @@ const HostModal: React.FC<HostModalProps> = ({ isDialogOpen, onOpenChange, onSub
727727
)}
728728
/>
729729

730-
<div className="flex justify-between gap-4">
731-
<div className="min-h-[100px] flex-[2]">
730+
<div className="flex justify-between gap-4 !mb-4">
731+
<div className="flex-[2]">
732732
<FormField
733733
control={form.control}
734734
name="address"
@@ -739,7 +739,7 @@ const HostModal: React.FC<HostModalProps> = ({ isDialogOpen, onOpenChange, onSub
739739
}}
740740
/>
741741
</div>
742-
<div className="min-h-[110px] flex-1">
742+
<div className="flex-1">
743743
<FormField
744744
control={form.control}
745745
name="port"

dashboard/src/components/statistics/Statistics.tsx renamed to dashboard/src/components/statistics/statistics-charts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import SystemStatisticsSection from './system-statistics-section'
99
import { AllNodesStackedBarChart } from '../charts/all-nodes-stacked-bar-chart'
1010
import { AreaCostumeChart } from '../charts/area-costume-chart'
1111

12-
interface StatisticsProps {
12+
interface StatisticsChartsProps {
1313
data?: SystemStats
1414
isLoading: boolean
1515
error: any
1616
selectedServer: string
1717
is_sudo: boolean
1818
}
1919

20-
export default function Statistics({ data, isLoading, error, selectedServer, is_sudo }: StatisticsProps) {
20+
export default function StatisticsCharts({ data, isLoading, error, selectedServer, is_sudo }: StatisticsChartsProps) {
2121
const { t } = useTranslation()
2222

2323
// Add state for chart refresh

dashboard/src/pages/_dashboard.statistics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PageHeader from '@/components/layout/page-header'
2-
import MainContent from '@/components/statistics/statistics'
2+
import MainContent from '@/components/statistics/statistics-charts'
33
import { Separator } from '@/components/ui/separator'
44
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
55
import { getGetSystemStatsQueryKey, getSystemStats, useGetNodes, NodeResponse } from '@/service/api'

dashboard/src/pages/_dashboard.users.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Separator } from '@/components/ui/separator'
33
import UsersTable from '@/components/users/users-table'
44
import UsersStatistics from '@/components/users/users-statistics'
55
import { Plus } from 'lucide-react'
6-
76
import UserModal from '@/components/dialogs/user-modal'
87
import { DEFAULT_SHADOWSOCKS_METHOD } from '@/constants/Proxies'
98
import { useQueryClient } from '@tanstack/react-query'

0 commit comments

Comments
 (0)