From c52423206b58c979869cab1fd3f86b3f116a9ab4 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Thu, 19 Aug 2021 18:46:09 +0200 Subject: [PATCH] added less padding for small devices on buttons --- web/src/components/Button.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Button.jsx b/web/src/components/Button.jsx index 031010dae..1e9614eba 100644 --- a/web/src/components/Button.jsx +++ b/web/src/components/Button.jsx @@ -66,7 +66,7 @@ export default function Button({ let classes = `whitespace-nowrap flex items-center space-x-1 ${className} ${ButtonTypes[type]} ${ ButtonColors[disabled ? 'disabled' : color][type] - } font-sans inline-flex font-bold uppercase text-xs px-1.5 md:px-2 py-2 rounded outline-none focus:outline-none ring-opacity-50 transition-shadow transition-colors ${ + } font-sans inline-flex font-bold uppercase text-xs px-1.5 md:px-2 sm:py-0 md:py-2 rounded outline-none focus:outline-none ring-opacity-50 transition-shadow transition-colors ${ disabled ? 'cursor-not-allowed' : 'focus:ring-2 cursor-pointer' }`;