From e76b22b2ae40b2fb286d9b57e1d7eb4f47b7dd46 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 6 Mar 2021 17:30:21 +0100 Subject: [PATCH] Ensured consistent heights in settings cards --- src/settings/RealTimeUpdates.tsx | 2 +- src/settings/Settings.tsx | 4 ++-- src/settings/ShortUrlCreation.tsx | 2 +- src/settings/UserInterface.tsx | 2 +- src/settings/Visits.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/settings/RealTimeUpdates.tsx b/src/settings/RealTimeUpdates.tsx index d737f6e9..46ac074e 100644 --- a/src/settings/RealTimeUpdates.tsx +++ b/src/settings/RealTimeUpdates.tsx @@ -15,7 +15,7 @@ const intervalValue = (interval?: number) => !interval ? '' : `${interval}`; const RealTimeUpdates = ( { settings: { realTimeUpdates }, toggleRealTimeUpdates, setRealTimeUpdatesInterval }: RealTimeUpdatesProps, ) => ( - + Enable or disable real-time updates, when using Shlink v2.2.0 or newer. diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx index 8305442e..1c9a1b36 100644 --- a/src/settings/Settings.tsx +++ b/src/settings/Settings.tsx @@ -7,8 +7,8 @@ const SettingsSections: FC<{ items: ReactNode[][] }> = ({ items }) => ( {items.map((child, index) => ( {child.map((subChild, subIndex) => ( -
-
{subChild}
+
+ {subChild}
))} diff --git a/src/settings/ShortUrlCreation.tsx b/src/settings/ShortUrlCreation.tsx index afd88c12..b91ed500 100644 --- a/src/settings/ShortUrlCreation.tsx +++ b/src/settings/ShortUrlCreation.tsx @@ -12,7 +12,7 @@ interface ShortUrlCreationProps { export const ShortUrlCreation: FC = ( { settings: { shortUrlCreation }, setShortUrlCreationSettings }, ) => ( - + = ({ settings: { ui }, setUiSettings }) => ( - + = ({ settings, setVisitsSettings }) => ( - +