From dc2ba955ab8f5a1e621a6ab4487390875f6c8d89 Mon Sep 17 00:00:00 2001 From: Rohan Chaturvedi Date: Tue, 6 Feb 2024 08:26:08 +0530 Subject: [PATCH] feat: improved tags styling (#171) * wip: improve tags ui * fix: tag style --------- Co-authored-by: Nimish --- frontend/components/environments/SecretRow.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/components/environments/SecretRow.tsx b/frontend/components/environments/SecretRow.tsx index e609a815..b480ab9e 100644 --- a/frontend/components/environments/SecretRow.tsx +++ b/frontend/components/environments/SecretRow.tsx @@ -22,6 +22,8 @@ import { FaUserEdit, FaTrash, FaCheck, + FaDotCircle, + FaCircle, } from 'react-icons/fa' import { Button } from '../common/Button' import { Dialog, Switch, Transition } from '@headlessui/react' @@ -43,8 +45,10 @@ export const Tag = (props: { tag: SecretTagType }) => { const { name, color } = props.tag return ( -
-
+
+
+ +
{name}
) @@ -844,8 +848,8 @@ export default function SecretRow(props: { keyIsBlank ? 'ring-1 ring-inset ring-red-500' : keyIsDuplicate - ? 'ring-1 ring-inset ring-amber-500' - : 'focus:ring-1 focus:ring-inset focus:ring-zinc-500', + ? 'ring-1 ring-inset ring-amber-500' + : 'focus:ring-1 focus:ring-inset focus:ring-zinc-500', secretHasBeenModified() && '!text-amber-500' )} value={secret.key}