Commit 68468927 authored by Steven's avatar Steven

chore: tweak setting styles

parent dfe29ec7
...@@ -145,9 +145,14 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef< ...@@ -145,9 +145,14 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
}, []); }, []);
return ( return (
<div className={classNames("flex flex-col justify-start items-start relative w-full h-auto bg-inherit dark:text-gray-300", className)}> <div
className={classNames(
"flex flex-col justify-start items-start relative w-full h-auto max-h-[256px] bg-inherit dark:text-gray-300",
className,
)}
>
<textarea <textarea
className="w-full h-full max-h-[300px] my-1 text-base resize-none overflow-x-hidden overflow-y-auto bg-transparent outline-none whitespace-pre-wrap word-break" className="w-full h-full my-1 text-base resize-none overflow-x-hidden overflow-y-auto bg-transparent outline-none whitespace-pre-wrap word-break"
rows={1} rows={1}
placeholder={placeholder} placeholder={placeholder}
ref={editorRef} ref={editorRef}
......
...@@ -147,13 +147,13 @@ const MemberSection = () => { ...@@ -147,13 +147,13 @@ const MemberSection = () => {
return ( return (
<div className="w-full flex flex-col gap-2 pt-2 pb-4"> <div className="w-full flex flex-col gap-2 pt-2 pb-4">
<p className="font-medium text-gray-700 dark:text-gray-500">{t("setting.member-section.create-a-member")}</p> <p className="font-medium text-gray-700 dark:text-gray-500">{t("setting.member-section.create-a-member")}</p>
<div className="w-full flex flex-col justify-start items-start gap-2"> <div className="w-auto flex flex-col justify-start items-start gap-2 border rounded-md py-2 px-3 dark:border-zinc-700">
<div className="flex flex-col justify-start items-start gap-1"> <div className="flex flex-col justify-start items-start gap-1">
<span className="text-sm">{t("common.username")}</span> <span>{t("common.username")}</span>
<Input type="text" placeholder={t("common.username")} value={state.creatingUser.username} onChange={handleUsernameInputChange} /> <Input type="text" placeholder={t("common.username")} value={state.creatingUser.username} onChange={handleUsernameInputChange} />
</div> </div>
<div className="flex flex-col justify-start items-start gap-1"> <div className="flex flex-col justify-start items-start gap-1">
<span className="text-sm">{t("common.password")}</span> <span>{t("common.password")}</span>
<Input <Input
type="password" type="password"
placeholder={t("common.password")} placeholder={t("common.password")}
...@@ -162,8 +162,8 @@ const MemberSection = () => { ...@@ -162,8 +162,8 @@ const MemberSection = () => {
/> />
</div> </div>
<div className="flex flex-col justify-start items-start gap-1"> <div className="flex flex-col justify-start items-start gap-1">
<span className="text-sm">{t("common.role")}</span> <span>{t("common.role")}</span>
<RadioGroup size="sm" orientation="horizontal" defaultValue={User_Role.USER} onChange={handleUserRoleInputChange}> <RadioGroup orientation="horizontal" defaultValue={User_Role.USER} onChange={handleUserRoleInputChange}>
<Radio value={User_Role.USER} label="User" /> <Radio value={User_Role.USER} label="User" />
<Radio value={User_Role.ADMIN} label="Admin" /> <Radio value={User_Role.ADMIN} label="Admin" />
</RadioGroup> </RadioGroup>
......
...@@ -103,10 +103,10 @@ const PreferencesSection = () => { ...@@ -103,10 +103,10 @@ const PreferencesSection = () => {
</Select> </Select>
</div> </div>
<Divider className="!mt-3 !my-4" /> <Divider className="!my-3" />
<div className="w-full flex flex-col justify-start items-start"> <div className="space-y-2 border rounded-md py-2 px-3 dark:border-zinc-700">
<div className="mb-2 w-full flex flex-row justify-between items-center"> <div className="w-full flex flex-row justify-between items-center">
<div className="w-auto flex items-center"> <div className="w-auto flex items-center">
<span className="mr-1">{t("setting.preference-section.telegram-user-id")}</span> <span className="mr-1">{t("setting.preference-section.telegram-user-id")}</span>
</div> </div>
...@@ -126,7 +126,7 @@ const PreferencesSection = () => { ...@@ -126,7 +126,7 @@ const PreferencesSection = () => {
/> />
<div className="w-full"> <div className="w-full">
<Link <Link
className="text-gray-500 text-sm inline-flex flex-row justify-start items-center mt-2 hover:underline hover:text-blue-600" className="text-gray-500 text-sm inline-flex flex-row justify-start items-center hover:underline hover:text-blue-600"
to="https://usememos.com/docs/integration/telegram-bot" to="https://usememos.com/docs/integration/telegram-bot"
target="_blank" target="_blank"
> >
...@@ -136,7 +136,7 @@ const PreferencesSection = () => { ...@@ -136,7 +136,7 @@ const PreferencesSection = () => {
</div> </div>
</div> </div>
<Divider className="!my-4" /> <Divider className="!my-3" />
<WebhookSection /> <WebhookSection />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment