Skip to content

Commit

Permalink
feat: improved tags styling (#171)
Browse files Browse the repository at this point in the history
* wip: improve tags ui

* fix: tag style

---------

Co-authored-by: Nimish <[email protected]>
  • Loading branch information
rohan-chaturvedi and nimish-ks authored Feb 6, 2024
1 parent 02a602b commit dc2ba95
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions frontend/components/environments/SecretRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -43,8 +45,10 @@ export const Tag = (props: { tag: SecretTagType }) => {
const { name, color } = props.tag

return (
<div className="flex items-center px-2 rounded-full gap-1 border border-zinc-300 dark:border-zinc-700 text-neutral-500 text-base">
<div className={`h-2 w-2 rounded-full`} style={{ backgroundColor: color }}></div>
<div className="flex items-center rounded-full gap-1 border border-zinc-300 dark:border-zinc-700 text-zinc-700 dark:text-zinc-200 text-base px-2">
<div className="flex items-center justify-center h-4 w-4">
<FaCircle className="text-sm" color={color} />
</div>
<span>{name}</span>
</div>
)
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit dc2ba95

Please sign in to comment.