feat: center the text in the options box in settings

This commit is contained in:
HimiCos 2023-03-30 13:51:37 +08:00
parent 8d6d6bbf5d
commit c46e1c6c7c
4 changed files with 12 additions and 6 deletions

View File

@ -92,7 +92,7 @@ const cn = {
}, },
CompressThreshold: { CompressThreshold: {
Title: "历史消息长度压缩阈值", Title: "历史消息长度压缩阈值",
SubTitle: "当未压缩的历史消息超过该值时,将进行压缩", SubTitle: "当未压缩的历史消息超过该值时,将进行压缩500 ~ 4000",
}, },
Token: { Token: {
Title: "API Key", Title: "API Key",
@ -119,7 +119,7 @@ const cn = {
}, },
MaxTokens: { MaxTokens: {
Title: "单次回复限制 (max_tokens)", Title: "单次回复限制 (max_tokens)",
SubTitle: "单次交互所用的最大 Token 数", SubTitle: "单次交互所用的最大 Token 数100 ~ 4096",
}, },
PresencePenlty: { PresencePenlty: {
Title: "话题新鲜度 (presence_penalty)", Title: "话题新鲜度 (presence_penalty)",

View File

@ -94,7 +94,7 @@ const en: LocaleType = {
CompressThreshold: { CompressThreshold: {
Title: "History Compression Threshold", Title: "History Compression Threshold",
SubTitle: SubTitle:
"Will compress if uncompressed messages length exceeds the value", "Will compress if uncompressed messages length exceeds the value (500 ~ 4000)",
}, },
Token: { Token: {
Title: "API Key", Title: "API Key",
@ -121,7 +121,7 @@ const en: LocaleType = {
}, },
MaxTokens: { MaxTokens: {
Title: "Max Tokens", Title: "Max Tokens",
SubTitle: "Maximum length of input tokens and generated tokens", SubTitle: "Maximum length of input tokens and generated tokens (100 ~ 4096)",
}, },
PresencePenlty: { PresencePenlty: {
Title: "Presence Penalty", Title: "Presence Penalty",

View File

@ -92,7 +92,7 @@ const tw: LocaleType = {
}, },
CompressThreshold: { CompressThreshold: {
Title: "歷史訊息長度壓縮閾值", Title: "歷史訊息長度壓縮閾值",
SubTitle: "當未壓縮的歷史訊息超過該值時,將進行壓縮", SubTitle: "當未壓縮的歷史訊息超過該值時,將進行壓縮500 ~ 4000",
}, },
Token: { Token: {
Title: "API Key", Title: "API Key",
@ -119,7 +119,7 @@ const tw: LocaleType = {
}, },
MaxTokens: { MaxTokens: {
Title: "單次回復限制 (max_tokens)", Title: "單次回復限制 (max_tokens)",
SubTitle: "單次交互所用的最大 Token 數", SubTitle: "單次交互所用的最大 Token 數100 ~ 4096",
}, },
PresencePenlty: { PresencePenlty: {
Title: "話題新穎度 (presence_penalty)", Title: "話題新穎度 (presence_penalty)",

View File

@ -119,6 +119,7 @@ select {
cursor: pointer; cursor: pointer;
background-color: var(--white); background-color: var(--white);
color: var(--black); color: var(--black);
text-align: center;
} }
input[type="checkbox"] { input[type="checkbox"] {
@ -185,6 +186,11 @@ input[type="text"] {
color: var(--black); color: var(--black);
padding: 0 10px; padding: 0 10px;
max-width: 50%; max-width: 50%;
text-align: center;
}
input[type=number]::-webkit-inner-spin-button{
-webkit-appearance: none;
} }
div.math { div.math {