fix styles

This commit is contained in:
pompurin404 2024-08-06 15:37:50 +08:00
parent e4d4b54874
commit 8897182d13
No known key found for this signature in database

View File

@ -80,7 +80,7 @@ const Connections: React.FC = () => {
title="连接" title="连接"
header={ header={
<div className="flex"> <div className="flex">
<div className="flex items-center"> <div className="flex items-center select-none">
<span className="mx-1 text-gray-400"> <span className="mx-1 text-gray-400">
: {calcTraffic(connectionsInfo?.downloadTotal ?? 0)}{' '} : {calcTraffic(connectionsInfo?.downloadTotal ?? 0)}{' '}
</span> </span>
@ -126,7 +126,7 @@ const Connections: React.FC = () => {
}} }}
isHeaderSticky isHeaderSticky
isStriped isStriped
className="h-[calc(100vh-100px)] p-2" className="h-[calc(100vh-100px)] p-2 select-none"
> >
<TableHeader> <TableHeader>
<TableColumn key="type" allowsSorting> <TableColumn key="type" allowsSorting>
@ -181,7 +181,7 @@ const Connections: React.FC = () => {
{item.metadata.sniffHost ?? '-'} {item.metadata.sniffHost ?? '-'}
</TableCell> </TableCell>
<TableCell className="max-w-[200px] text-ellipsis whitespace-nowrap overflow-hidden"> <TableCell className="max-w-[200px] text-ellipsis whitespace-nowrap overflow-hidden">
{item.rule}:{item.rulePayload} {`${item.rule} ${item.rulePayload}`}
</TableCell> </TableCell>
<TableCell className="max-w-[200px] text-ellipsis whitespace-nowrap overflow-hidden"> <TableCell className="max-w-[200px] text-ellipsis whitespace-nowrap overflow-hidden">
{item.chains.reverse().join('::')} {item.chains.reverse().join('::')}