From 7f6182576832d5b5341870a5b3ea1ec623421261 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 29 Mar 2021 21:08:48 +0200 Subject: [PATCH] Reduced and standardized overall vertical spacing --- src/servers/CreateServer.tsx | 2 +- src/servers/Overview.tsx | 16 ++++++++-------- src/servers/helpers/ServerForm.tsx | 2 +- src/settings/Settings.tsx | 2 +- src/visits/VisitsStats.tsx | 22 +++++++++++----------- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/servers/CreateServer.tsx b/src/servers/CreateServer.tsx index d98d3619..0f87fa0d 100644 --- a/src/servers/CreateServer.tsx +++ b/src/servers/CreateServer.tsx @@ -42,7 +42,7 @@ const CreateServer = (ImportServersBtn: FC, useStateFlagT {(serversImported || errorImporting) && ( -
+
{serversImported && } {errorImporting && }
diff --git a/src/servers/Overview.tsx b/src/servers/Overview.tsx index 703cf717..ea156041 100644 --- a/src/servers/Overview.tsx +++ b/src/servers/Overview.tsx @@ -1,5 +1,5 @@ import { FC, useEffect } from 'react'; -import { Card, CardBody, CardHeader, CardText, CardTitle } from 'reactstrap'; +import { Card, CardBody, CardHeader, CardText, CardTitle, Row } from 'reactstrap'; import { Link, useHistory } from 'react-router-dom'; import { ShortUrlsListParams } from '../short-urls/reducers/shortUrlsListParams'; import { ShortUrlsList as ShortUrlsListState } from '../short-urls/reducers/shortUrlsList'; @@ -51,9 +51,9 @@ export const Overview = ( return ( <> -
+
- + Visits @@ -66,7 +66,7 @@ export const Overview = (
- + Orphan visits @@ -79,7 +79,7 @@ export const Overview = (
- + Short URLs {loading ? 'Loading...' : prettify(shortUrls?.pagination.totalItems ?? 0)} @@ -87,13 +87,13 @@ export const Overview = (
- + Tags {loadingTags ? 'Loading...' : prettify(tagsList.tags.length)}
-
- + + Create a short URL
Create a short URL
diff --git a/src/servers/helpers/ServerForm.tsx b/src/servers/helpers/ServerForm.tsx index d0d7bf66..78f04113 100644 --- a/src/servers/helpers/ServerForm.tsx +++ b/src/servers/helpers/ServerForm.tsx @@ -25,7 +25,7 @@ export const ServerForm: FC = ({ onSubmit, initialValues, child return (
- + Name URL API key diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx index 1c9a1b36..294115a0 100644 --- a/src/settings/Settings.tsx +++ b/src/settings/Settings.tsx @@ -7,7 +7,7 @@ const SettingsSections: FC<{ items: ReactNode[][] }> = ({ items }) => ( {items.map((child, index) => ( {child.map((subChild, subIndex) => ( -
+
{subChild}
))} diff --git a/src/visits/VisitsStats.tsx b/src/visits/VisitsStats.tsx index d94d14bb..ad2e13a1 100644 --- a/src/visits/VisitsStats.tsx +++ b/src/visits/VisitsStats.tsx @@ -154,7 +154,7 @@ const VisitsStats: FC = ( -
+
= ( -
+
-
+
-
+
= ( />
{isOrphanVisits && ( -
+
= ( -
+
= ( onClick={highlightVisitsForProp('country')} />
-
+
= ( <> {children} -
+
@@ -273,7 +273,7 @@ const VisitsStats: FC = ( {isOrphanVisits && ( @@ -281,7 +281,7 @@ const VisitsStats: FC = (
{visits.length > 0 && ( -
+
-
+
{renderVisitsContent()}