chore: fix tiny UIs

This commit is contained in:
Tristan Yang
2023-03-06 09:51:10 +08:00
parent 98402eb119
commit 8a1807b3a1
7 changed files with 10 additions and 14 deletions
@@ -96,7 +96,7 @@ const MemberList: FC<Props> = ({ cid }) => {
})}
>
{t("admin")}
{is_admin && <IconCheck className="icon" />}
{is_admin && <IconCheck className="icon dark:fill-white" />}
</li>
<li
className="item sb"
@@ -107,7 +107,7 @@ const MemberList: FC<Props> = ({ cid }) => {
})}
>
{t("user")}
{!is_admin && <IconCheck className="icon" />}
{!is_admin && <IconCheck className="icon dark:fill-white" />}
</li>
</ul>
}
+2 -2
View File
@@ -24,9 +24,9 @@ const UsersModal: FC<Props> = ({ closeModal }) => {
return (
<Modal>
<div className="flex flex-col w-80 md:w-[440px] max-h-[402px] bg-white drop-shadow rounded-lg" ref={wrapperRef}>
<div className="flex flex-col w-80 md:w-[440px] max-h-[402px] bg-white dark:bg-gray-900 drop-shadow rounded-lg" ref={wrapperRef}>
<div className="shadow-md p-2">
<input className=" p-2 text-sm" value={input} onChange={handleSearch} placeholder={t("search_user_placeholder")} />
<input className="p-2 text-sm bg-transparent dark:text-white" value={input} onChange={handleSearch} placeholder={t("search_user_placeholder")} />
</div>
{users && (
<ul className="flex flex-col overflow-y-scroll h-[260px] py-4">
+1 -1
View File
@@ -59,7 +59,7 @@ const Select: FC<Props> = ({ options = [], updateSelect = null, current = null }
}
>
<div className="select-none border border-solid border-slate-200 p-2 flex items-center gap-2" onClick={toggleVisible}>
<span className="text-sm text-gray-500 min-w-[76px]">{(current !== null ? current : curr)?.title || t("action.select")}</span>
<span className="text-sm text-gray-500 dark:text-gray-200 min-w-[76px]">{(current !== null ? current : curr)?.title || t("action.select")}</span>
<IconArrow className="!w-5 !h-5" />
</div>
</Tippy>