ui: display fix

This commit is contained in:
undefined committed 2021-07-16 16:11:27 +08:00
1 parent 4f9a8f1580
commit ee97a4bde6
3 files changed
+5 -3

No files matched your search

@@ -26,8 +26,8 @@ code
white-space: pre white-space: pre
.sample > .toolbar .sample > .toolbar
right: 12px !important right: 0.7em !important
top: 59px !important top: 3.7em !important
.toolbar .toolbar
position: absolute position: absolute
@@ -88,6 +88,8 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
if (UiContext.domain.langs && !`,${UiContext.domain.langs},`.includes(`,${key},`)) continue; if (UiContext.domain.langs && !`,${UiContext.domain.langs},`.includes(`,${key},`)) continue;
LANGS[key] = window.LANGS[key]; LANGS[key] = window.LANGS[key];
} }
const keys = Object.keys(LANGS);
if (!keys.includes(this.props.editorLang)) this.props.setEditorLanguage(keys[0]);
return ( return (
<Toolbar> <Toolbar>
<ToolbarButton <ToolbarButton
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.12.21", "version": "4.12.22",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",