From a0a39f83d3385c429c1badd69ce00a17ba59a0c8 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 28 Apr 2020 14:50:35 +0200 Subject: [PATCH 1/7] Fix 'Add question' button overlapping navigation toggle Signed-off-by: Jan-Christoph Borchardt --- src/views/Create.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/Create.vue b/src/views/Create.vue index 12d6524..94e1251 100644 --- a/src/views/Create.vue +++ b/src/views/Create.vue @@ -429,6 +429,8 @@ export default { align-items: center; align-self: flex-start; width: 44px; + // To not overlap navigation toggle + margin-left: 44px; height: var(--top-bar-height); // make sure this doesn't take any space and appear floating margin-top: -44px; From f57a18cad41d10b2dd6e9ff1d91ac3a0c70a5728 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 28 Apr 2020 14:59:45 +0200 Subject: [PATCH 2/7] Improve vertical spacing Signed-off-by: Jan-Christoph Borchardt --- src/components/Questions/Question.vue | 4 +--- src/views/Create.vue | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/Questions/Question.vue b/src/components/Questions/Question.vue index 59567b2..a79d367 100644 --- a/src/components/Questions/Question.vue +++ b/src/components/Questions/Question.vue @@ -162,7 +162,7 @@ export default { align-items: stretch; flex-direction: column; justify-content: stretch; - margin-bottom: 22px; + margin: 80px 0; padding-left: 44px; user-select: none; background-color: var(--color-main-background); @@ -194,7 +194,6 @@ export default { &__content { flex: 1 1 100%; max-width: 100%; - margin-bottom: 20px; padding: 0; } @@ -204,7 +203,6 @@ export default { flex: 1 1 100%; justify-content: space-between; width: auto; - margin-top: 20px; // Using type to have a higher order than the input styling of server &-title, diff --git a/src/views/Create.vue b/src/views/Create.vue index 94e1251..5c2e57c 100644 --- a/src/views/Create.vue +++ b/src/views/Create.vue @@ -384,13 +384,13 @@ export default { #form-title, #form-desc { width: 100%; - margin: 16px 0; // aerate the header padding: 0 16px; border: none; } #form-title { font-size: 2em; font-weight: bold; + margin: 32px 0; padding-left: 14px; // align with description (compensate font size diff) overflow-x: hidden; text-overflow: ellipsis; @@ -399,7 +399,6 @@ export default { #form-desc { min-height: 60px; max-height: 200px; - margin-top: 0; resize: none; } } @@ -432,8 +431,6 @@ export default { // To not overlap navigation toggle margin-left: 44px; height: var(--top-bar-height); - // make sure this doesn't take any space and appear floating - margin-top: -44px; .icon-add-white { opacity: 1; From e2f503e189b0e588668f42e5389fd3ff02724a5f Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 28 Apr 2020 15:13:02 +0200 Subject: [PATCH 3/7] Fix answer placeholder for long and short answer question Signed-off-by: Jan-Christoph Borchardt --- src/components/Questions/Question.vue | 2 +- src/components/Questions/QuestionLong.vue | 2 +- src/components/Questions/QuestionShort.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Questions/Question.vue b/src/components/Questions/Question.vue index a79d367..04272fd 100644 --- a/src/components/Questions/Question.vue +++ b/src/components/Questions/Question.vue @@ -36,7 +36,7 @@