Skip to content

Commit c731c48

Browse files
committed
Improve styles in search filters subpage
1 parent cf6138d commit c731c48

File tree

1 file changed

+38
-8
lines changed
  • kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages

1 file changed

+38
-8
lines changed

kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SearchFilters.vue

+38-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
<template>
22

3-
<SearchFiltersPanel
4-
v-model="searchTermsComputed"
5-
accordion
6-
showChannels
7-
showActivities
8-
@close="showSearch = true"
9-
@searchClick="onSearchClick"
10-
/>
3+
<div>
4+
<div
5+
v-if="topic"
6+
class="side-panel-subtitle"
7+
>
8+
{{ $tr('searchInTitle', { folder: topic.title }) }}
9+
</div>
10+
<SearchFiltersPanel
11+
v-model="searchTermsComputed"
12+
accordion
13+
showChannels
14+
showActivities
15+
@close="showSearch = true"
16+
@searchClick="onSearchClick"
17+
/>
18+
</div>
1119

1220
</template>
1321

@@ -64,6 +72,11 @@
6472
type: Object,
6573
required: true,
6674
},
75+
topic: {
76+
type: Object,
77+
required: false,
78+
default: null,
79+
},
6780
},
6881
computed: {
6982
searchTermsComputed: {
@@ -89,15 +102,32 @@
89102
});
90103
},
91104
},
105+
$trs: {
106+
searchInTitle: {
107+
message: "Search in '{folder}'",
108+
context: 'Title for search resources in folder',
109+
},
110+
},
92111
};
93112
94113
</script>
95114
96115
97116
<style lang="scss" scoped>
98117
118+
.side-panel-subtitle {
119+
margin-bottom: 24px;
120+
font-size: 16px;
121+
font-weight: 600;
122+
}
123+
99124
/deep/ .search-box-row {
100125
max-width: unset !important;
101126
}
102127
128+
/deep/ h2 {
129+
font-size: 16px;
130+
font-weight: 600;
131+
}
132+
103133
</style>

0 commit comments

Comments
 (0)