mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: auto complete in memo editor (#720)
This commit is contained in:
@ -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)}
|
||||
|
Reference in New Issue
Block a user