From 39f892bbfb7408c910363db4f9ec14d64d4d31af Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 16 Feb 2020 22:42:25 +0300 Subject: [PATCH] Fix displaying delete buttons in mobile UI --- src/views/settings/components/Inputs.vue | 128 ++++++++++++----------- src/views/settings/styles/main.scss | 26 ++++- 2 files changed, 93 insertions(+), 61 deletions(-) diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index be5e27d4..f03d8567 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -28,71 +28,79 @@ - - - - - - - - - - - - - - - - - - - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
- - -
diff --git a/src/views/settings/styles/main.scss b/src/views/settings/styles/main.scss index be8298f2..e908e554 100644 --- a/src/views/settings/styles/main.scss +++ b/src/views/settings/styles/main.scss @@ -190,6 +190,11 @@ } .prune-options { display: flex; + height: 36px; + align-items: baseline; + .el-radio { + margin-top: 11px; + } } .rate-limit { .el-form-item__content { @@ -262,6 +267,9 @@ right: 0; z-index: 10000; } + .switch-input { + height: 36px; + } .text { line-height: 20px; margin-right: 15px @@ -287,9 +295,16 @@ @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { + .delete-setting-button { + margin-left: 5px; + height: 28px; + } + .delete-setting-button-container { + flex: 0 0 auto; + } .description > p { line-height: 18px; - margin: 0 0 7px 0; + margin: 0 5px 7px 0; code { display: inline; line-height: 18px; @@ -314,6 +329,9 @@ display: flex; justify-content: space-between; } + .input { + flex: 1 1 auto; + } .input-container { width: 100%; .el-form-item:first-child { @@ -324,6 +342,11 @@ margin: 4px 7px 0 -5px; } } + .input-row { + display: flex; + align-items: center; + justify-content: space-between; + } .limit-input { width: 46%; } @@ -342,6 +365,7 @@ } .prune-options { flex-direction: column; + height: 80px; } .rate-limit { .el-form-item__content {