fix: ports all listed in white

This commit is contained in:
Jack Wills
2024-02-14 09:42:31 +00:00
parent 6202b7bbfd
commit d3b23585b3
2 changed files with 2 additions and 8 deletions
-2
View File
@@ -11,8 +11,6 @@ services:
ipc: private ipc: private
restart: always restart: always
shm_size: 256MB shm_size: 256MB
ports:
- "127.0.0.1:4040:4040"
networks: networks:
- oxker-example-net - oxker-example-net
deploy: deploy:
+2 -6
View File
@@ -321,12 +321,8 @@ pub fn ports(
)) ))
.fg(Color::Yellow), .fg(Color::Yellow),
)]; )];
for (index, item) in ports.0.iter().enumerate() { for item in &ports.0 {
let fg = if index % 2 == 0 { let fg = Color::White;
Color::White
} else {
Color::Magenta
};
let strings = item.print(); let strings = item.print();
let line = vec![ let line = vec![