mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 桌面端编辑器设置支持自适应宽度 https://github.com/siyuan-note/siyuan/issues/5182
This commit is contained in:
parent
9e2f8831a4
commit
da95eb66e4
6 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"adaptiveWidth": "Adaptive Width",
|
"adaptiveWidth": "Adaptive Width",
|
||||||
|
"fullWidthTip": "After enabling, the editing area will be displayed as wide as possible",
|
||||||
"tabLimit": "Tab Limit",
|
"tabLimit": "Tab Limit",
|
||||||
"tabLimit1": "Sort by opening time, close the earliest opened tab",
|
"tabLimit1": "Sort by opening time, close the earliest opened tab",
|
||||||
"pasteEscaped": "Paste escaped text",
|
"pasteEscaped": "Paste escaped text",
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"tabLimit": "Límite de la pestaña",
|
||||||
"tabLimit1": "Ordenar por hora de apertura, cerrar la primera pestaña abierta",
|
"tabLimit1": "Ordenar por hora de apertura, cerrar la primera pestaña abierta",
|
||||||
"pasteEscaped": "Pegar texto escapado",
|
"pasteEscaped": "Pegar texto escapado",
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"tabLimit": "Nombre maximum d'onglets ouverts",
|
||||||
"tabLimit1": "Trier par heure d'ouverture, fermer le premier onglet ouvert",
|
"tabLimit1": "Trier par heure d'ouverture, fermer le premier onglet ouvert",
|
||||||
"pasteEscaped": "Coller le texte échappé",
|
"pasteEscaped": "Coller le texte échappé",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"adaptiveWidth": "自適應寬度",
|
"fullWidth": "自適應寬度",
|
||||||
|
"fullWidthTip": "開啟後將盡可能寬地顯示編輯區",
|
||||||
"tabLimit": "頁簽打開最大數量",
|
"tabLimit": "頁簽打開最大數量",
|
||||||
"tabLimit1": "按照打開時間排序,關閉最早打開的頁簽",
|
"tabLimit1": "按照打開時間排序,關閉最早打開的頁簽",
|
||||||
"pasteEscaped": "粘貼轉義文本",
|
"pasteEscaped": "粘貼轉義文本",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"fullWidth": "自适应宽度",
|
"fullWidth": "自适应宽度",
|
||||||
|
"fullWidthTip": "开启后将尽可能宽地显示编辑区",
|
||||||
"tabLimit": "页签打开最大数量",
|
"tabLimit": "页签打开最大数量",
|
||||||
"tabLimit1": "按照打开时间排序,关闭最早打开的页签",
|
"tabLimit1": "按照打开时间排序,关闭最早打开的页签",
|
||||||
"pasteEscaped": "粘贴转义文本",
|
"pasteEscaped": "粘贴转义文本",
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ export const editor = {
|
||||||
return `<label class="fn__flex b3-label">
|
return `<label class="fn__flex b3-label">
|
||||||
<div class="fn__flex-1">
|
<div class="fn__flex-1">
|
||||||
${window.siyuan.languages.fullWidth}
|
${window.siyuan.languages.fullWidth}
|
||||||
|
<div class="b3-label__text">${window.siyuan.languages.fullWidthTip}</div>
|
||||||
</div>
|
</div>
|
||||||
<span class="fn__space"></span>
|
<span class="fn__space"></span>
|
||||||
<input class="b3-switch fn__flex-center" id="fullWidth" type="checkbox"${window.siyuan.config.editor.fullWidth ? " checked" : ""}/>
|
<input class="b3-switch fn__flex-center" id="fullWidth" type="checkbox"${window.siyuan.config.editor.fullWidth ? " checked" : ""}/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue