mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: display fix
This commit is contained in:
1 parent
4f9a8f1580
commit
ee97a4bde6
3 files changed
+5
-3
No files matched your search
@@ -26,8 +26,8 @@ code
|
||||
white-space: pre
|
||||
|
||||
.sample > .toolbar
|
||||
right: 12px !important
|
||||
top: 59px !important
|
||||
right: 0.7em !important
|
||||
top: 3.7em !important
|
||||
|
||||
.toolbar
|
||||
position: absolute
|
||||
|
||||
@@ -88,6 +88,8 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
|
||||
if (UiContext.domain.langs && !`,${UiContext.domain.langs},`.includes(`,${key},`)) continue;
|
||||
LANGS[key] = window.LANGS[key];
|
||||
}
|
||||
const keys = Object.keys(LANGS);
|
||||
if (!keys.includes(this.props.editorLang)) this.props.setEditorLanguage(keys[0]);
|
||||
return (
|
||||
<Toolbar>
|
||||
<ToolbarButton
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.12.21",
|
||||
"version": "4.12.22",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user