A full-featured download manager.
refactor: task item style
Dr_rOot2ff56a377044
diff --git a/src/renderer/components/Task/TaskItem.vue b/src/renderer/components/Task/TaskItem.vueindex 9a8f897c..6a335a6a 100644--- a/src/renderer/components/Task/TaskItem.vue+++ b/src/renderer/components/Task/TaskItem.vue@@ -98,8 +98,8 @@}.task-name {color: #505753;- margin-bottom: 32px;- margin-right: 240px;+ margin-bottom: 1.5rem;+ margin-right: 220px;word-break: break-all;min-height: 26px;&> span {diff --git a/src/renderer/components/Task/TaskProgressInfo.vue b/src/renderer/components/Task/TaskProgressInfo.vueindex 24a76954..b92c5b34 100644--- a/src/renderer/components/Task/TaskProgressInfo.vue+++ b/src/renderer/components/Task/TaskProgressInfo.vue@@ -1,42 +1,44 @@<template><el-row class="task-progress-info">- <el-col :span="8" class="task-progress-info-left">+ <el-col :span="6" class="task-progress-info-left"><div v-if="task.completedLength > 0 || task.totalLength > 0"><span>{{ task.completedLength | bytesToSize }}</span><span v-if="task.totalLength > 0"> / {{ task.totalLength | bytesToSize }}</span></div></el-col>- <el-col :span="16" class="task-progress-info-right">+ <el-col :span="18" class="task-progress-info-right"><div class="task-speed-info" v-if="isActive">- <span class="task-speed-text" v-if="isBT">- <i><mo-icon name="arrow-up" width="10" height="10" /></i>- <i>{{ task.uploadSpeed | bytesToSize }}/s</i>- </span>- <span class="task-speed-text">- <i><mo-icon name="arrow-down" width="10" height="10" /></i>- <i>{{ task.downloadSpeed | bytesToSize }}/s</i>- </span>- <span class="task-speed-text" v-if="remaining > 0">- {{- remaining | timeFormat({- prefix: $t('task.remaining-prefix'),- i18n: {- 'gt1d': $t('app.gt1d'),- 'hour': $t('app.hour'),- 'minute': $t('app.minute'),- 'second': $t('app.second')- }- })- }}- </span>- <span class="task-speed-text" v-if="isBT">- <i><mo-icon name="magnet" width="10" height="10" /></i>- <i>{{ task.numSeeders }}</i>- </span>- <span class="task-speed-text">- <i><mo-icon name="node" width="10" height="10" /></i>- <i>{{ task.connections }}</i>- </span>+ <div class="task-speed-text" v-if="isBT">+ <i><mo-icon name="arrow-up" width="10" height="14" /></i>+ <span>{{ task.uploadSpeed | bytesToSize }}/s</span>+ </div>+ <div class="task-speed-text">+ <i><mo-icon name="arrow-down" width="10" height="14" /></i>+ <span>{{ task.downloadSpeed | bytesToSize }}/s</span>+ </div>+ <div class="task-speed-text" v-if="remaining > 0">+ <span>+ {{+ remaining | timeFormat({+ prefix: $t('task.remaining-prefix'),+ i18n: {+ 'gt1d': $t('app.gt1d'),+ 'hour': $t('app.hour'),+ 'minute': $t('app.minute'),+ 'second': $t('app.second')+ }+ })+ }}+ </span>+ </div>+ <div class="task-speed-text" v-if="isBT">+ <i><mo-icon name="magnet" width="10" height="14" /></i>+ <span>{{ task.numSeeders }}</span>+ </div>+ <div class="task-speed-text">+ <i><mo-icon name="node" width="10" height="14" /></i>+ <span>{{ task.connections }}</span>+ </div></div></el-col></el-row>@@ -87,29 +89,46 @@<style lang="scss">.task-progress-info {- font-size: 12px;- line-height: 14px;- min-height: 14px;+ font-size: 0.75rem;+ line-height: 0.875rem;+ min-height: 0.875rem;color: #9B9B9B;- margin-top: 8px;+ margin-top: 0.5rem;i {font-style: normal;}}.task-progress-info-left {- min-height: 14px;+ min-height: 0.875rem;text-align: left;}.task-progress-info-right {- min-height: 14px;+ min-height: 0.875rem;text-align: right;}.task-speed-info {+ font-size: 0;& > .task-speed-text {- margin-left: 8px;- & > i {+ margin-left: 0.375rem;+ font-size: 0;+ line-height: 0.875rem;+ vertical-align: middle;+ display: inline-block;+ &:first-of-type {+ margin-left: 0;+ }+ & > i, & > span {+ height: 0.875rem;+ line-height: 0.875rem;+ display: inline-block;vertical-align: middle;}+ & > i {+ margin-right: 0.125rem;+ }+ & > span {+ font-size: 0.75rem;+ }}}</style>