Skip to content

Commit

Permalink
Match styles to specs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Dec 19, 2024
1 parent d45c26b commit bb801dd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:items="allLearners"
:filterPlaceholder="$tr('searchPlaceholder')"
:itemsPerPage="itemsPerPage"
:searchFieldBlock="searchFieldBlock"
@pageChanged="currentPageLearners = $event.items"
>
<template #default="{ items }">
Expand Down Expand Up @@ -112,6 +113,10 @@
required: false,
default: null,
},
searchFieldBlock: {
type: Boolean,
default: false,
},
},
data() {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@shouldFocusFirstEl="focusFirstEl"
>
<template #header>
<h1>
<h1 class="side-panel-title">
{{ $tr('selectGroupsAndIndividualLearnersTitle') }}
</h1>
</template>
Expand All @@ -26,21 +26,28 @@
<KLabeledIcon
:label="group.name"
icon="group"
class="font-size-14"
/>
</KCheckbox>
<KCheckbox
:label="$tr('allUngroupedLearnres')"
:checked="allUngroupedLearnresIsSelected"
:disabled="disabled"
@change="selectAllUngroupedLearners($event)"
/>
>
<KLabeledIcon
:label="$tr('allUngroupedLearnres')"
icon="people"
class="font-size-14"
/>
</KCheckbox>
</section>
<section>
<h2>{{ coachString('individualLearnersLabel') }}</h2>
<div>
<div class="font-size-14">
{{ coachString('onlyShowingEnrolledLabel') }}
</div>
<IndividualLearnerSelectorTable
searchFieldBlock
:selectedGroupIds="workingSelectedGroupIds"
:selectedLearnerIds.sync="workingAdHocLearners"
:disabled="disabled"
Expand Down Expand Up @@ -189,4 +196,19 @@
margin-bottom: 16px;
}
.side-panel-title {
font-size: 18px;
font-weight: 600;
}
section h2 {
margin-top: 24px;
font-size: 16px;
font-weight: 600;
}
.font-size-14 {
font-size: 14px;
}
</style>
9 changes: 7 additions & 2 deletions packages/kolibri-common/components/PaginatedListContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

<div>
<KGrid>
<KGridItem :layout12="{ span: 7 }">
<KGridItem :layout12="{ span: searchFieldBlock ? 12 : 7 }">
<slot name="otherFilter"></slot>
</KGridItem>
<KGridItem
:layout12="{ span: 5, alignment: 'right' }"
:layout12="{ span: searchFieldBlock ? 12 : 5, alignment: 'right' }"
class="text-filter"
>
<FilterTextbox
v-model="filterInput"
:placeholder="filterPlaceholder"
:style="{ width: searchFieldBlock ? '100%' : null }"
/>
</KGridItem>
</KGrid>
Expand Down Expand Up @@ -75,6 +76,10 @@
required: false,
default: 30,
},
searchFieldBlock: {
type: Boolean,
required: false,
},
},
data() {
return {
Expand Down

0 comments on commit bb801dd

Please sign in to comment.