chore: update help button style (#1656)

This commit is contained in:
boojack
2023-05-13 22:52:06 +08:00
committed by GitHub
parent 96021e518a
commit 921d4b996d
4 changed files with 15 additions and 15 deletions

View File

@ -231,9 +231,9 @@ const SystemSection = () => {
<Switch checked={state.disablePublicMemos} onChange={(event) => handleDisablePublicMemosChanged(event.target.checked)} />
</div>
<div className="form-label">
<div className="flex flex-row">
<span className="normal-text">{t("setting.system-section.max-upload-size")}</span>
<HelpButton icon="info" hint={t("setting.system-section.max-upload-size-hint")} hintPlacement="left" />
<div className="flex flex-row items-center">
<span className="normal-text mr-1">{t("setting.system-section.max-upload-size")}</span>
<HelpButton icon="info" hint={t("setting.system-section.max-upload-size-hint")} />
</div>
<Input
className="w-16"
@ -247,8 +247,8 @@ const SystemSection = () => {
</div>
<Divider className="!mt-3 !my-4" />
<div className="form-label">
<div className="flex flex-row">
<span className="normal-text">{t("setting.system-section.openai-api-key")}</span>
<div className="flex flex-row items-center">
<span className="normal-text mr-1">{t("setting.system-section.openai-api-key")}</span>
<HelpButton hint={t("setting.system-section.openai-api-key-description")} url="https://platform.openai.com/account/api-keys" />
</div>
<Button onClick={handleSaveOpenAIConfig}>{t("common.save")}</Button>