Skip to content

Commit 1deb3ba

Browse files
updates
1 parent c355bf8 commit 1deb3ba

File tree

5 files changed

+44
-31
lines changed

5 files changed

+44
-31
lines changed

lib/builder.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ const Builder = () => {
9292
setVar={setLanguage}
9393
addItemNameToTitles2={true}
9494
/>
95+
<select className='oa' title={translate.raw('builder-threedots-title')}>
96+
<option title={translate.raw('builder-fixmonacoeditor-button')}>{translate.raw('builder-fixmonacoeditor-question')}
97+
<button title={translate.raw('builder-fixmonacoeditor-button-title')}>{translate.raw('builder-fixmonacoeditor-button')}</button>
98+
</option>
99+
</select>
95100
</div>
96101
</div>
97102
<script src="/third-party/monaco-editor/package/min/vs/loader.js"></script>

locales/en.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"builder-filelanguage": "Language:",
55
"builder-langdropup-collapsed": "Click to expand the drop-up.",
66
"builder-langdropup-expanded": "Click to collapse the drop-up.",
7-
"builder-langdropup-switchToLang": "Switch to "
7+
"builder-langdropup-switchToLang": "Switch to ",
8+
"builder-fixmonacoeditor-question": "Incorrect code display?",
9+
"builder-fixmonacoeditor-button": "Fix",
10+
"builder-fixmonacoeditor-button-title": "Click to fix Monaco Editor",
11+
"builder-threedots-title": "Other actions..."
812
}

locales/ru.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"builder-filelanguage": "Язык:",
55
"builder-langdropup-collapsed": "Нажмите, чтобы раскрыть раскрывающийся список.",
66
"builder-langdropup-expanded": "Нажмите, чтобы свернуть раскрывающийся список.",
7-
"builder-langdropup-switchToLang": "Переключится на "
7+
"builder-langdropup-switchToLang": "Переключится на ",
8+
"builder-fixmonacoeditor-question": "Некорректное отображение кода?",
9+
"builder-fixmonacoeditor-button": "Исправить",
10+
"builder-fixmonacoeditor-button-title": "Нажмите, чтобы исправить Monaco Editor",
11+
"builder-threedots-title": "Другие действия..."
812
}

pages/iframe/builder.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

pages/style.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,32 @@ button {
198198
.z1 { /* Z-index - 1 */
199199
z-index: 1;
200200
}
201+
202+
.oa { /* Other Actions button */
203+
position: absolute;
204+
display: block !important;
205+
right: 10px;
206+
font-family: "Source Code Pro", Consolas, "Courier New", monospace;
207+
border-radius: 50px;
208+
width: 22px;
209+
height: 22px;
210+
text-align: center;
211+
-webkit-appearance: none;
212+
-moz-appearance: none;
213+
appearance: none;
214+
background-image: none;
215+
border: none;
216+
outline: none;
217+
}
218+
.oa:hover {
219+
background-color: rgba(0, 0, 0, 0.15);
220+
}
221+
.oa:active {
222+
background-color: rgba(0, 0, 0, 0.2);
223+
}
224+
.oa::before {
225+
content: '\22EF';
226+
}
227+
.oa::-ms-expand {
228+
display: none;
229+
}

0 commit comments

Comments
 (0)