From 7d3565659219fd49af931346c8d92bab001f1590 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 19 Mar 2019 17:35:50 +0900 Subject: [PATCH] Fix #97, Fix #2943 (#4533) --- .../app/common/views/components/uploader.vue | 122 +++++++++--------- .../desktop/views/components/drive.file.vue | 2 +- .../mobile/views/components/drive.file.vue | 3 +- 3 files changed, 62 insertions(+), 65 deletions(-) diff --git a/src/client/app/common/views/components/uploader.vue b/src/client/app/common/views/components/uploader.vue index 275b8371a..134243bbd 100644 --- a/src/client/app/common/views/components/uploader.vue +++ b/src/client/app/common/views/components/uploader.vue @@ -3,12 +3,14 @@
  1. -

    {{ ctx.name }}

    -

    - {{ $t('waiting') }} - {{ String(Math.floor(ctx.progress.value / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }}KB / {{ String(Math.floor(ctx.progress.max / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }}KB - {{ Math.floor((ctx.progress.value / ctx.progress.max) * 100) }} -

    +
    +

    {{ ctx.name }}

    +

    + {{ $t('waiting') }} + {{ String(Math.floor(ctx.progress.value / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }}KB / {{ String(Math.floor(ctx.progress.max / 1024)).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,') }}KB + {{ Math.floor((ctx.progress.value / ctx.progress.max) * 100) }} +

    +
    @@ -116,12 +118,17 @@ export default Vue.extend({ list-style none > li - display block + display grid margin 8px 0 0 0 padding 0 height 36px + width: 100% box-shadow 0 -1px 0 var(--primaryAlpha01) border-top solid 8px transparent + grid-template-columns 36px calc(100% - 44px) + grid-template-rows 1fr 8px + column-gap 8px + box-sizing content-box &:first-child margin 0 @@ -130,68 +137,62 @@ export default Vue.extend({ > .img display block - position absolute - top 0 - left 0 - width 36px - height 36px background-size cover background-position center center + grid-column 1 / 2 + grid-row 1 / 3 - > .name - display block - position absolute - top 0 - left 44px - margin 0 - padding 0 - max-width 256px - font-size 0.8em - color var(--primaryAlpha07) - white-space nowrap - text-overflow ellipsis - overflow hidden - - > [data-icon] - margin-right 4px - - > .status - display block - position absolute - top 0 - right 0 - margin 0 - padding 0 - font-size 0.8em - - > .initing - color var(--primaryAlpha05) - - > .kb - color var(--primaryAlpha05) - - > .percentage - display inline-block - width 48px - text-align right + > .top + display flex + grid-column 2 / 3 + grid-row 1 / 2 + > .name + display block + padding 0 8px 0 0 + margin 0 + font-size 0.8em color var(--primaryAlpha07) + white-space nowrap + text-overflow ellipsis + overflow hidden + flex-shrink 1 - &:after - content '%' + > [data-icon] + margin-right 4px + + > .status + display block + margin 0 0 0 auto + padding 0 + font-size 0.8em + flex-shrink 0 + + > .initing + color var(--primaryAlpha05) + + > .kb + color var(--primaryAlpha05) + + > .percentage + display inline-block + width 48px + text-align right + + color var(--primaryAlpha07) + + &:after + content '%' > progress display block - position absolute - bottom 0 - right 0 - margin 0 - width calc(100% - 44px) - height 8px background transparent border none border-radius 4px overflow hidden + grid-column 2 / 3 + grid-row 2 / 3 + z-index 2 &::-webkit-progress-value background var(--primary) @@ -201,12 +202,6 @@ export default Vue.extend({ > .progress display block - position absolute - bottom 0 - right 0 - margin 0 - width calc(100% - 44px) - height 8px border none border-radius 4px background linear-gradient( @@ -221,6 +216,9 @@ export default Vue.extend({ ) background-size 32px 32px animation bg 1.5s linear infinite + grid-column 2 / 3 + grid-row 2 / 3 + z-index 1 &.initing opacity 0.3 diff --git a/src/client/app/desktop/views/components/drive.file.vue b/src/client/app/desktop/views/components/drive.file.vue index 975b1d6b5..c560e6d97 100644 --- a/src/client/app/desktop/views/components/drive.file.vue +++ b/src/client/app/desktop/views/components/drive.file.vue @@ -205,7 +205,7 @@ export default Vue.extend({