File tree 1 file changed +20
-12
lines changed
kolibri/plugins/coach/assets/src/views/common/resourceSelection/subPages
1 file changed +20
-12
lines changed Original file line number Diff line number Diff line change 7
7
:settings =" settings"
8
8
@searchClick =" onSearchClick"
9
9
/>
10
+ <!-- flexDirection is set to row-reverse to align the search button to the right
11
+ when we have no bookmarks and thus, no selectFromBookmarks$ string -->
10
12
<div
11
- v-if =" bookmarksCount > 0"
12
- class =" mb-24"
13
+ v-if =" target === SelectionTarget.LESSON"
14
+ class =" subheader"
15
+ :style =" {
16
+ flexDirection: bookmarksCount > 0 ? 'row' : 'row-reverse',
17
+ }"
13
18
>
14
19
<div
15
- v-if =" target === SelectionTarget.LESSON "
16
- class =" subheader "
20
+ v-if =" bookmarksCount > 0 "
21
+ class =" side-panel-subtitle "
17
22
>
18
- <div class =" side-panel-subtitle" >
19
- {{ selectFromBookmarks$() }}
20
- </div >
21
- <KButton
22
- icon =" filter"
23
- :text =" searchLabel$()"
24
- @click =" onSearchClick"
25
- />
23
+ {{ selectFromBookmarks$() }}
26
24
</div >
25
+ <KButton
26
+ icon =" filter"
27
+ :text =" searchLabel$()"
28
+ @click =" onSearchClick"
29
+ />
30
+ </div >
27
31
32
+ <div
33
+ v-if =" bookmarksCount > 0"
34
+ class =" mb-24"
35
+ >
28
36
<div
29
37
v-if =" target === SelectionTarget.QUIZ && settings.selectPracticeQuiz"
30
38
class =" d-flex-end mb-24"
You can’t perform that action at this time.
0 commit comments