mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: UI improvements. (#2734)
* style: update check icon colors to match our design. * fix: automatically focus input box in pages `add label` modal.
This commit is contained in:
parent
8832d8e00e
commit
7676aab773
@ -112,7 +112,7 @@ export const SingleIntegrationCard: React.FC<Props> = observer(({ integration })
|
||||
<h3 className="flex items-center gap-2 text-sm font-medium">
|
||||
{integration.title}
|
||||
{workspaceIntegrations
|
||||
? isInstalled && <CheckCircle className="h-3.5 w-3.5 text-white fill-green-500" />
|
||||
? isInstalled && <CheckCircle className="h-3.5 w-3.5 text-green-500 fill-transparent" />
|
||||
: null}
|
||||
</h3>
|
||||
<p className="text-sm text-custom-text-200 tracking-tight">
|
||||
|
@ -46,10 +46,18 @@ export const CreateLabelModal: React.FC<Props> = observer((props) => {
|
||||
control,
|
||||
reset,
|
||||
setValue,
|
||||
setFocus,
|
||||
} = useForm<IIssueLabels>({
|
||||
defaultValues,
|
||||
});
|
||||
|
||||
/**
|
||||
* For setting focus on name input
|
||||
*/
|
||||
useEffect(() => {
|
||||
setFocus("name");
|
||||
}, [setFocus, isOpen]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isOpen) setValue("color", getRandomLabelColor());
|
||||
}, [setValue, isOpen]);
|
||||
|
Loading…
Reference in New Issue
Block a user