From 7ab97533a5f55615431259a3a387db2edb370332 Mon Sep 17 00:00:00 2001 From: Artyom Zaporozhets Date: Sat, 20 Sep 2025 16:56:06 +0300 Subject: [PATCH] #27: slightly more compact coordinates --- src/components/ui/astronomy.tsx | 2 +- src/components/ui/catalog-data.tsx | 45 ++++++++++++------------------ 2 files changed, 19 insertions(+), 28 deletions(-) diff --git a/src/components/ui/astronomy.tsx b/src/components/ui/astronomy.tsx index bc1bc43..f40cb78 100644 --- a/src/components/ui/astronomy.tsx +++ b/src/components/ui/astronomy.tsx @@ -42,7 +42,7 @@ export function QuantityWithError({ decimalPlaces = 2, }: QuantityWithErrorProps): ReactElement { return ( -
+
{children} ±
); diff --git a/src/components/ui/catalog-data.tsx b/src/components/ui/catalog-data.tsx index 02f560a..2f6ff53 100644 --- a/src/components/ui/catalog-data.tsx +++ b/src/components/ui/catalog-data.tsx @@ -31,38 +31,33 @@ export function CatalogData({ } if (catalogs?.coordinates) { - if (catalogs.coordinates.equatorial?.ra !== undefined) { - data.push({ - Parameter: "Equatorial RA", - Value: ( + data.push({ + Parameter: "Equatorial coordinates", + Value: ( + + α ={" "} - ), - }); - } - - if (catalogs.coordinates.equatorial?.dec !== undefined) { - data.push({ - Parameter: "Equatorial Dec", - Value: ( + , δ ={" "} - ), - }); - } + + ), + }); - data.push( - { - Parameter: "Galactic l", - Value: ( + data.push({ + Parameter: "Galactic coordinates", + Value: ( + + l ={" "} - ), - }, - { - Parameter: "Galactic b", - Value: ( + , b ={" "} - ), - }, - ); + + ), + }); } if (catalogs?.redshift) {