Skip to content

Commit

Permalink
Merge pull request #12945 from AllanOXDi/print-fix
Browse files Browse the repository at this point in the history
Fix  'New quiz' button is visible in the print report
  • Loading branch information
marcellamaki authored Dec 18, 2024
2 parents 2293e22 + b9667a7 commit a1e0333
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
20 changes: 14 additions & 6 deletions kolibri/plugins/coach/assets/src/views/lessons/LessonsRootPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
<KPageContainer>
<CoachHeader :title="coreString('lessonsLabel')">
<template #actions>
<KRouterLink
primary
appearance="raised-button"
:text="coachString('newLessonAction')"
:to="newLessonRoute"
/>
<div class="lesson-button">
<KRouterLink
primary
appearance="raised-button"
:text="coachString('newLessonAction')"
:to="newLessonRoute"
/>
</div>
</template>
</CoachHeader>
<div>
Expand Down Expand Up @@ -500,4 +502,10 @@
margin-bottom: 16px;
}
@media print {
.lesson-button {
display: none;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<template #actions>
<KButton
v-if="practiceQuizzesExist && !hasNoChannels"
class="new-quiz-button"
primary
hasDropdown
appearance="raised-button"
Expand Down Expand Up @@ -649,4 +650,10 @@
margin: 0 0 1em;
}
@media print {
.new-quiz-button {
display: none;
}
}
</style>

0 comments on commit a1e0333

Please sign in to comment.