From 0ce18b21ca547af6c083c3f248e22b7daf92aef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Espinoza?= <31373060+nicospz@users.noreply.github.com> Date: Mon, 9 Aug 2021 17:44:29 +0900 Subject: [PATCH] fix(ui): fix notifications settings buttons overflowing (#1911) * fix(ui): fix notifications settings buttons overflowing * fix(ui): fix table overflowing --- src/components/Common/Button/index.tsx | 2 +- src/components/Common/SettingsTabs/index.tsx | 6 +++--- src/components/Common/Table/index.tsx | 8 ++++---- src/components/Settings/SettingsLogs/index.tsx | 13 +++++++------ 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/components/Common/Button/index.tsx b/src/components/Common/Button/index.tsx index ab94650a0..f1083e5b2 100644 --- a/src/components/Common/Button/index.tsx +++ b/src/components/Common/Button/index.tsx @@ -45,7 +45,7 @@ function Button

( ref?: React.Ref> ): JSX.Element { const buttonStyle = [ - 'inline-flex items-center justify-center border border-transparent leading-5 font-medium rounded-md focus:outline-none transition ease-in-out duration-150 cursor-pointer disabled:opacity-50', + 'inline-flex items-center justify-center border border-transparent leading-5 font-medium rounded-md focus:outline-none transition ease-in-out duration-150 cursor-pointer disabled:opacity-50 whitespace-nowrap', ]; switch (buttonType) { case 'primary': diff --git a/src/components/Common/SettingsTabs/index.tsx b/src/components/Common/SettingsTabs/index.tsx index 5fcdca734..5f450cf7a 100644 --- a/src/components/Common/SettingsTabs/index.tsx +++ b/src/components/Common/SettingsTabs/index.tsx @@ -46,7 +46,7 @@ const SettingsLink: React.FC<{ if (tabType === 'button') { linkClasses = - 'px-3 py-2 ml-8 text-sm font-medium transition duration-300 rounded-md whitespace-nowrap first:ml-0'; + 'px-3 py-2 text-sm font-medium transition duration-300 rounded-md whitespace-nowrap mx-2 my-1'; activeLinkColor = 'bg-indigo-700'; inactiveLinkColor = 'bg-gray-800 hover:bg-gray-700 focus:bg-gray-700'; } @@ -119,8 +119,8 @@ const SettingsTabs: React.FC<{ {tabType === 'button' ? ( -

-