Skip to content

A full-featured download manager.

refactor: improve ui style

Dr_rOotace14c85dc23
diff --git a/src/renderer/components/About/AboutPanel.vue b/src/renderer/components/About/AboutPanel.vue
index c9896e93..db936940 100644
--- a/src/renderer/components/About/AboutPanel.vue
+++ b/src/renderer/components/About/AboutPanel.vue
@@ -58,6 +58,7 @@
<style lang="scss">
.app-about-dialog {
max-width: 632px;
+ min-width: 380px;
.el-dialog__header {
padding-top: 0;
padding-bottom: 0;
diff --git a/src/renderer/components/Task/AddTask.vue b/src/renderer/components/Task/AddTask.vue
index 39897bb4..2b0d9147 100644
--- a/src/renderer/components/Task/AddTask.vue
+++ b/src/renderer/components/Task/AddTask.vue
@@ -78,7 +78,7 @@
/>
</el-input>
</el-form-item>
- <div v-if="showAdvanced">
+ <div class="task-advanced-options" v-if="showAdvanced">
<el-form-item
:label="`${$t('task.task-user-agent')}: `"
:label-width="formLabelWidth"
@@ -421,6 +421,10 @@ export default {
<style lang="scss">
.el-dialog.add-task-dialog {
max-width: 632px;
+ min-width: 380px;
+ .task-advanced-options .el-form-item:last-of-type {
+ margin-bottom: 0;
+ }
.el-tabs__header {
user-select: none;
}
diff --git a/src/renderer/components/Task/TaskItemInfo.vue b/src/renderer/components/Task/TaskItemInfo.vue
index 14e7a356..b13506ea 100644
--- a/src/renderer/components/Task/TaskItemInfo.vue
+++ b/src/renderer/components/Task/TaskItemInfo.vue
@@ -118,6 +118,7 @@
<style lang="scss">
.task-info-dialog {
+ min-width: 380px;
.el-dialog__header {
padding-right: 60px;
}
diff --git a/src/renderer/components/Theme/Default.scss b/src/renderer/components/Theme/Default.scss
index bb4099b7..c0fa3686 100644
--- a/src/renderer/components/Theme/Default.scss
+++ b/src/renderer/components/Theme/Default.scss
@@ -113,6 +113,9 @@ img {
line-height: 1;
padding-top: 4px;
color: $--color-info;
+ > a {
+ margin-right: 10px;
+ }
}
.el-input-number.el-input-number--mini {
@@ -270,4 +273,4 @@ img {
.hidden-md-and-up {
display: none !important;
}
-}
\ No newline at end of file
+}
diff --git a/src/shared/utils.js b/src/shared/utils.js
index b7121dbe..5e888671 100644
--- a/src/shared/utils.js
+++ b/src/shared/utils.js
@@ -529,7 +529,7 @@ export function diffConfig (current = {}, next = {}) {
}
export function calcFormLabelWidth (locale) {
- return locale.startsWith('de') ? '28%' : '23%'
+ return locale.startsWith('de') ? '28%' : '25%'
}
export function parseHeader (header = '') {