fix: auto complete in memo editor (#720)

This commit is contained in:
boojack
2022-12-10 12:44:45 +08:00
committed by GitHub
parent 387799b31c
commit ab8c7b9d8a
5 changed files with 59 additions and 42 deletions

View File

@ -117,20 +117,16 @@ const SystemSection = () => {
<span className="normal-text">
{t("setting.system-section.database-file-size")}: <span className="font-mono font-medium">{formatBytes(state.dbSize)}</span>
</span>
<Button size="sm" onClick={handleVacuumBtnClick}>
{t("common.vacuum")}
</Button>
<Button onClick={handleVacuumBtnClick}>{t("common.vacuum")}</Button>
</label>
<p className="title-text">{t("sidebar.setting")}</p>
<label className="form-label">
<span className="normal-text">{t("setting.system-section.allow-user-signup")}</span>
<Switch size="sm" checked={state.allowSignUp} onChange={(event) => handleAllowSignUpChanged(event.target.checked)} />
<Switch checked={state.allowSignUp} onChange={(event) => handleAllowSignUpChanged(event.target.checked)} />
</label>
<div className="form-label">
<span className="normal-text">{t("setting.system-section.additional-style")}</span>
<Button size="sm" onClick={handleSaveAdditionalStyle}>
{t("common.save")}
</Button>
<Button onClick={handleSaveAdditionalStyle}>{t("common.save")}</Button>
</div>
<Textarea
className="w-full"
@ -139,16 +135,14 @@ const SystemSection = () => {
fontSize: "14px",
}}
minRows={4}
maxRows={10}
maxRows={4}
placeholder={t("setting.system-section.additional-style-placeholder")}
value={state.additionalStyle}
onChange={(event) => handleAdditionalStyleChanged(event.target.value)}
/>
<div className="form-label mt-2">
<span className="normal-text">{t("setting.system-section.additional-script")}</span>
<Button size="sm" onClick={handleSaveAdditionalScript}>
{t("common.save")}
</Button>
<Button onClick={handleSaveAdditionalScript}>{t("common.save")}</Button>
</div>
<Textarea
className="w-full"
@ -158,7 +152,7 @@ const SystemSection = () => {
fontSize: "14px",
}}
minRows={4}
maxRows={10}
maxRows={4}
placeholder={t("setting.system-section.additional-script-placeholder")}
value={state.additionalScript}
onChange={(event) => handleAdditionalScriptChanged(event.target.value)}