refactor: setting overview layout

This commit is contained in:
Tristan Yang
2023-05-16 14:54:59 +08:00
parent 23191fd3bf
commit d931bf8daa
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ export default function RegContainer() {
return (
<div className="flex-center h-screen overflow-x-hidden overflow-y-auto dark:bg-gray-700">
<div className="py-8 px-10 shadow-md rounded-xl">
<div className="py-8 px-10 shadow-md rounded-xl max-h-[95vh] overflow-y-auto overflow-x-hidden">
<Outlet context={{ token }} />
</div>
</div>
+1 -1
View File
@@ -36,7 +36,7 @@ const Index = () => {
<SettingBlock title={t("overview.url.title")} desc={t("overview.url.desc")}>
<div className="flex items-center gap-4 mt-2">
<StyledInput placeholder='frontend url' value={url} onChange={handleChange} />
<StyledButton disabled={!url || isLoading} className='' onClick={handleUpdate}> {ct("action.update")}</StyledButton>
<StyledButton disabled={!url || isLoading} className='small' onClick={handleUpdate}> {ct("action.update")}</StyledButton>
</div>
</SettingBlock>
);
+5 -5
View File
@@ -35,11 +35,14 @@ export default function Overview() {
return (
<div className="relative w-full md:w-[512px] flex flex-col gap-6">
<Server />
{/* 设置前端url */}
<ServerVersionChecker version="0.3.3" empty={true}>
<FrontendURL />
</ServerVersionChecker>
{isAdmin && (
<>
<div className="flex flex-col">
<h4 className="font-bold text-gray-700 dark:text-white">{t("overview.title_feat")}</h4>
<p className="text-gray-400 text-xs">{t("overview.title_feat_desc")}</p>
</div>
{/* 注册开放与否 */}
<SettingBlock title={t("overview.sign_up.title")} desc={t("overview.sign_up.desc")}>
@@ -75,10 +78,7 @@ export default function Overview() {
<ServerVersionChecker version="0.3.7" empty={true}>
<ContactVerification />
</ServerVersionChecker>
{/* 设置前端url */}
<ServerVersionChecker version="0.3.3" empty={true}>
<FrontendURL />
</ServerVersionChecker>
</>
)}