From 03179cd83e33dc2ef2e3cce1329751aed2ca215d Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Mon, 20 Sep 2021 00:09:58 +0100 Subject: [PATCH] Fix links spacing --- chartered-frontend/src/pages/crate/CrateView.tsx | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/chartered-frontend/src/pages/crate/CrateView.tsx b/chartered-frontend/src/pages/crate/CrateView.tsx index 8a23aaf..d945f66 100644 --- a/chartered-frontend/src/pages/crate/CrateView.tsx +++ a/chartered-frontend/src/pages/crate/CrateView.tsx @@ -100,15 +100,33 @@
-
- {" "} - {crateInfo.homepage} -
- {" "} - {crateInfo.documentation} -
- {" "} - {crateInfo.repository} +
+ {crateInfo.homepage ? ( +
+ {" "} + {crateInfo.homepage} +
+ ) : ( + <> + )} + {crateInfo.documentation ? ( + + ) : ( + <> + )} + {crateInfo.repository ? ( + + ) : ( + <> + )}
-- rgit 0.1.3