🎨 桌面端编辑器设置支持自适应宽度 https://github.com/siyuan-note/siyuan/issues/5182

This commit is contained in:
Liang Ding 2022-06-30 23:46:49 +08:00
parent 9e2f8831a4
commit da95eb66e4
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,6 @@
{
"adaptiveWidth": "Adaptive Width",
"fullWidthTip": "After enabling, the editing area will be displayed as wide as possible",
"tabLimit": "Tab Limit",
"tabLimit1": "Sort by opening time, close the earliest opened tab",
"pasteEscaped": "Paste escaped text",

View file

@ -1,5 +1,6 @@
{
"adaptiveWidth": "Ancho adaptable",
"fullWidth": "Ancho adaptable",
"fullWidthTip": "Cuando está habilitado, el área de edición se mostrará lo más amplia posible",
"tabLimit": "Límite de la pestaña",
"tabLimit1": "Ordenar por hora de apertura, cerrar la primera pestaña abierta",
"pasteEscaped": "Pegar texto escapado",

View file

@ -1,5 +1,6 @@
{
"adaptiveWidth": "Largeur adaptative",
"fullWidth": "Largeur adaptative",
"fullWidthTip": "Lorsqu'il est activé, la zone d'édition sera affichée aussi large que possible",
"tabLimit": "Nombre maximum d'onglets ouverts",
"tabLimit1": "Trier par heure d'ouverture, fermer le premier onglet ouvert",
"pasteEscaped": "Coller le texte échappé",

View file

@ -1,5 +1,6 @@
{
"adaptiveWidth": "自適應寬度",
"fullWidth": "自適應寬度",
"fullWidthTip": "開啟後將盡可能寬地顯示編輯區",
"tabLimit": "頁簽打開最大數量",
"tabLimit1": "按照打開時間排序,關閉最早打開的頁簽",
"pasteEscaped": "粘貼轉義文本",

View file

@ -1,5 +1,6 @@
{
"fullWidth": "自适应宽度",
"fullWidthTip": "开启后将尽可能宽地显示编辑区",
"tabLimit": "页签打开最大数量",
"tabLimit1": "按照打开时间排序,关闭最早打开的页签",
"pasteEscaped": "粘贴转义文本",

View file

@ -12,6 +12,7 @@ export const editor = {
return `<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.fullWidth}
<div class="b3-label__text">${window.siyuan.languages.fullWidthTip}</div>
</div>
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" id="fullWidth" type="checkbox"${window.siyuan.config.editor.fullWidth ? " checked" : ""}/>