mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 修复disconnect显示
This commit is contained in:
1 parent
1e0d6d9148
commit
3027421101
2 files changed
+4
-4
No files matched your search
@@ -4,7 +4,7 @@ import Notification from 'vj/components/notification/index';
|
|||||||
import i18n from 'vj/utils/i18n';
|
import i18n from 'vj/utils/i18n';
|
||||||
import tpl from 'vj/utils/tpl';
|
import tpl from 'vj/utils/tpl';
|
||||||
|
|
||||||
const notification = tpl`<div style="position: fixed; left: 0px; bottom: -30px; width: 100%; \
|
const notification = tpl`<div style="position: fixed; left: 0px; bottom: -100px; width: 100%; \
|
||||||
background: rgb(255, 241, 184); z-index: 2147483647; color: rgb(97, 52, 0); \
|
background: rgb(255, 241, 184); z-index: 2147483647; color: rgb(97, 52, 0); \
|
||||||
text-align: center; font-size: 18px; font-family: Consolas, Menlo, Courier, monospace; \
|
text-align: center; font-size: 18px; font-family: Consolas, Menlo, Courier, monospace; \
|
||||||
padding: 8px 0px; box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;" id="disconnect_notification" \
|
padding: 8px 0px; box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;" id="disconnect_notification" \
|
||||||
@@ -13,10 +13,10 @@ padding: 8px 0px; box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;" id="disconnect_no
|
|||||||
const $el = $(notification);
|
const $el = $(notification);
|
||||||
$el.appendTo('body');
|
$el.appendTo('body');
|
||||||
function create() {
|
function create() {
|
||||||
$el.animate({ bottom: 0 }, 500);
|
$el.animate({ bottom: 0 }, 100);
|
||||||
}
|
}
|
||||||
function remove() {
|
function remove() {
|
||||||
$el.animate({ bottom: -30 }, 300);
|
$el.animate({ bottom: -100 }, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class Sock {
|
export default class Sock {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.18.9",
|
"version": "4.18.10",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user