From 66ee43e269f1f4f4a25d8c2ba8b9d52520b710b7 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 5 Nov 2021 10:22:50 -0400 Subject: [PATCH] Changing list style --- .../radioQuestion/radioQuestion.vue | 12 ++-- src/layouts/selectYear/selectYear.vue | 58 +++++++++---------- src/styles/commonStyles.scss | 29 +++++----- 3 files changed, 46 insertions(+), 53 deletions(-) diff --git a/src/commonComponents/radioQuestion/radioQuestion.vue b/src/commonComponents/radioQuestion/radioQuestion.vue index 2724c069f..8f00064ff 100644 --- a/src/commonComponents/radioQuestion/radioQuestion.vue +++ b/src/commonComponents/radioQuestion/radioQuestion.vue @@ -3,13 +3,11 @@
{{ questionText }}
-
-
-
- -
-
-
+
+
+ +
+
diff --git a/src/layouts/selectYear/selectYear.vue b/src/layouts/selectYear/selectYear.vue index f87273b99..2f8699ffa 100644 --- a/src/layouts/selectYear/selectYear.vue +++ b/src/layouts/selectYear/selectYear.vue @@ -1,15 +1,13 @@ @@ -26,6 +24,8 @@ export default { data() { return { years: [], + pageHeader: {}, + radioQuestion: {} }; }, mounted() { @@ -38,25 +38,23 @@ export default { this.years = response.data.Result; }); - // Sample Call to Mockey to represent real data being sent back from the API, and how the modles are supposed to - // be prosessed and passed to child components. - axios.get("https://mockey.qa.sagaws.net/service/content/selectYear").then((response) => { - response.data.Result.forEach((m) => { - switch (m.Type) { - case this.widgetNames.PAGE_HEADING_WIDGET: { - this.pageHeader = m.Model; - break; - } - case this.widgetNames.RADIO_QUESTION_WIDGET: { - this.radioQuestion = m.Model; - break; - } - default: { - break; - } - } - }) - }); + axios.get("https://mockey.qa.sagaws.net/service/content/selectYear").then((response) => { + response.data.Result.forEach((m) => { + switch (m.Type) { + case this.widgetNames.PAGE_HEADING_WIDGET: { + this.pageHeader = m.Model; + break; + } + case this.widgetNames.RADIO_QUESTION_WIDGET: { + this.radioQuestion = m.Model; + break; + } + default: { + break; + } + } + }) + }); }, methods: { selectYear(year) { diff --git a/src/styles/commonStyles.scss b/src/styles/commonStyles.scss index 3defe4aa7..d38cf6050 100644 --- a/src/styles/commonStyles.scss +++ b/src/styles/commonStyles.scss @@ -146,24 +146,21 @@ caption { // SelectCar styles .select-car { - height: 100vh; + height: calc(100vh - 1rem); - .select-car-form, .car_info, .radio_question { - background: $white; - height: 100%; + .car_list { + position: absolute; + height: calc(100% - 1rem); + width: calc(100% - 1rem); + overflow-y: scroll; + overflow-x: hidden; + } - .list-view { - height: calc(100% - 230px); - overflow-y: scroll; - overflow-x: hidden; - } - - .car_list, .current_car_info-text, .needed_car_info-text { - flex-shrink: 0; - width: 100%; - position: relative; - transition: transform .3s; - } + .current_car_info-text, .needed_car_info-text { + flex-shrink: 0; + width: 100%; + position: relative; + transition: transform .3s; } .current_car_info {