From 95f2e49ee06b959c586301106857c49cf7440252 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Tue, 2 Apr 2024 21:18:52 -0700 Subject: [PATCH] update firewall filter type/value visual treatment (#2108) * update firewall filter type/value visual treatment * use normal-case on values badges * keep various filters on one line, with wrapping when needed --- app/table/cells/FirewallFilterCell.tsx | 15 +++++++++------ app/table/cells/TypeValueCell.tsx | 4 +++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/table/cells/FirewallFilterCell.tsx b/app/table/cells/FirewallFilterCell.tsx index c239dd866f..ad235cb271 100644 --- a/app/table/cells/FirewallFilterCell.tsx +++ b/app/table/cells/FirewallFilterCell.tsx @@ -15,14 +15,17 @@ import { TypeValueCell } from './TypeValueCell' export const FirewallFilterCell = ({ value: { hosts, ports, protocols }, }: Cell) => ( -
- {hosts && hosts.map((tv, i) => )} - {protocols && - protocols.map((p, i) => ( - +
+
+ {hosts?.map((tv, i) => )} +
+
+ {protocols?.map((p, i) => {p})} + {ports?.map((p, i) => ( + {p} ))} - {ports && ports.map((p, i) => {p})} +
) diff --git a/app/table/cells/TypeValueCell.tsx b/app/table/cells/TypeValueCell.tsx index bf34d19a85..a887228f7e 100644 --- a/app/table/cells/TypeValueCell.tsx +++ b/app/table/cells/TypeValueCell.tsx @@ -18,6 +18,8 @@ export type TypeValue = { export const TypeValueCell = ({ value: { type, value } }: Cell) => (
{type} - {value} + + {value} +
)