From 794c023772c1ecc69fce14dceb99ffdbe74f64c2 Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Fri, 29 Oct 2021 11:18:23 -0400 Subject: [PATCH] Various code cleanup - deleting stale code, uncommenting necessary code, styles --- .../src/views/CategorySearchModal/index.vue | 18 +++--- .../views/EmbeddedSidePanel/SelectGroup.vue | 5 +- .../src/views/HybridLearningCardGrid.vue | 55 ++++++++----------- .../learn/assets/src/views/LearnIndex.vue | 6 -- 4 files changed, 38 insertions(+), 46 deletions(-) diff --git a/kolibri/plugins/learn/assets/src/views/CategorySearchModal/index.vue b/kolibri/plugins/learn/assets/src/views/CategorySearchModal/index.vue index d82920cc0b9..219a7ba4139 100644 --- a/kolibri/plugins/learn/assets/src/views/CategorySearchModal/index.vue +++ b/kolibri/plugins/learn/assets/src/views/CategorySearchModal/index.vue @@ -17,15 +17,17 @@ v-on="$listeners" /> +
+

{{ $tr('title') }}

+ +
-

{{ $tr('title') }}

- diff --git a/kolibri/plugins/learn/assets/src/views/EmbeddedSidePanel/SelectGroup.vue b/kolibri/plugins/learn/assets/src/views/EmbeddedSidePanel/SelectGroup.vue index 3293169d651..ef12ea529d4 100644 --- a/kolibri/plugins/learn/assets/src/views/EmbeddedSidePanel/SelectGroup.vue +++ b/kolibri/plugins/learn/assets/src/views/EmbeddedSidePanel/SelectGroup.vue @@ -7,6 +7,7 @@ class="selector" :value="selectedLanguage" :label="coreString('languageLabel')" + :style="{ color: $themeTokens.text }" @change="val => handleChange('languages', val)" /> @@ -162,7 +166,6 @@ bottom: 45px; left: 10px; font-size: 12px; - color: black; } /deep/ .ui-select-label-text.is-floating { diff --git a/kolibri/plugins/learn/assets/src/views/HybridLearningCardGrid.vue b/kolibri/plugins/learn/assets/src/views/HybridLearningCardGrid.vue index 269ea0faf83..ac7c245b0d9 100644 --- a/kolibri/plugins/learn/assets/src/views/HybridLearningCardGrid.vue +++ b/kolibri/plugins/learn/assets/src/views/HybridLearningCardGrid.vue @@ -14,7 +14,7 @@ :title="content.title" :thumbnail="content.thumbnail" :kind="content.kind" - :activityLength="content.activity_length" + :activityLength="content.duration" :isLeaf="content.is_leaf" :progress="content.progress_fraction || 0" :numCoachContents="content.num_coach_contents" @@ -28,25 +28,26 @@ /> - +
+ +
@@ -67,7 +68,7 @@ :channelThumbnail="content.channel_thumbnail" :channelTitle="content.channel_title" :description="content.description" - :activityLength="content.activity_length" + :activityLength="content.duration" :currentPage="currentPage" class="grid-item" :isMobile="windowIsSmall" @@ -98,15 +99,14 @@