mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix display issue
This commit is contained in:
1 parent
cb8549f1db
commit
18b4f3e33b
4 files changed
+8
-7
No files matched your search
@@ -14,6 +14,7 @@
|
|||||||
.problem__tag-item
|
.problem__tag-item
|
||||||
padding: rem(0px)
|
padding: rem(0px)
|
||||||
margin-left: rem(3px)
|
margin-left: rem(3px)
|
||||||
|
margin-bottom: rem(2px)
|
||||||
&:hover
|
&:hover
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
+above(rupture.mobile-cutoff)
|
+above(rupture.mobile-cutoff)
|
||||||
.immersive--center
|
.immersive--center
|
||||||
width: 200px
|
width: 230px
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
|
|
||||||
.immersive--center
|
.immersive--center
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.8.26",
|
"version": "4.8.27",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -89,13 +89,13 @@ const page = new NamedPage('problem_files', () => {
|
|||||||
window.addEventListener('beforeunload', onBeforeUnload);
|
window.addEventListener('beforeunload', onBeforeUnload);
|
||||||
const dialog = new Dialog({
|
const dialog = new Dialog({
|
||||||
$body: `\
|
$body: `\
|
||||||
<div class="upload-label" style="text-align: center;margin-bottom: 8px;color: gray;"></div>
|
|
||||||
<div class="bp3-progress-bar bp3-intent-primary bp3-no-stripes">
|
|
||||||
<div class="upload-progress bp3-progress-meter" style="width: 0"></div>
|
|
||||||
</div>
|
|
||||||
<div class="file-label" style="text-align: center;margin: 5px 0;color: gray;font-size: small;"></div>
|
<div class="file-label" style="text-align: center;margin: 5px 0;color: gray;font-size: small;"></div>
|
||||||
<div class="bp3-progress-bar bp3-intent-primary bp3-no-stripes">
|
<div class="bp3-progress-bar bp3-intent-primary bp3-no-stripes">
|
||||||
<div class="file-progress bp3-progress-meter" style="width: 0"></div>
|
<div class="file-progress bp3-progress-meter" style="width: 0"></div>
|
||||||
|
</div>
|
||||||
|
<div class="upload-label" style="text-align: center;margin-bottom: 8px;color: gray;"></div>
|
||||||
|
<div class="bp3-progress-bar bp3-intent-primary bp3-no-stripes">
|
||||||
|
<div class="upload-progress bp3-progress-meter" style="width: 0"></div>
|
||||||
</div>`,
|
</div>`,
|
||||||
});
|
});
|
||||||
dialog.open();
|
dialog.open();
|
||||||
@@ -116,7 +116,7 @@ const page = new NamedPage('problem_files', () => {
|
|||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.upload.addEventListener('loadstart', () => {
|
xhr.upload.addEventListener('loadstart', () => {
|
||||||
$fileLabel.text(`[${+i + 1}/${files.length}] ${file.name}`);
|
$fileLabel.text(`[${+i + 1}/${files.length}] ${file.name}`);
|
||||||
$fileProgress.width(`${Math.round((+i + 1) / file.length * 100)}%`);
|
$fileProgress.width(`${Math.round((+i + 1) / files.length * 100)}%`);
|
||||||
$uploadLabel.text(i18n('Uploading... ({0}%)', 0));
|
$uploadLabel.text(i18n('Uploading... ({0}%)', 0));
|
||||||
$uploadProgress.width(0);
|
$uploadProgress.width(0);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user