diff --git a/AUTHORS.md b/AUTHORS.md index 8da7d6f676..f35252cce0 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -100,3 +100,4 @@ If you have contributed to Kolibri, feel free to add your name and Github accoun | Kris Katkus | katkuskris | | Garvit Singhal | GarvitSinghal47 | | Adars T S | a6ar55 | +| Shivang Rawat | ShivangRawat30 | diff --git a/kolibri/plugins/pdf_viewer/assets/src/views/PdfRendererIndex.vue b/kolibri/plugins/pdf_viewer/assets/src/views/PdfRendererIndex.vue index 027413187f..6a67476426 100644 --- a/kolibri/plugins/pdf_viewer/assets/src/views/PdfRendererIndex.vue +++ b/kolibri/plugins/pdf_viewer/assets/src/views/PdfRendererIndex.vue @@ -127,7 +127,7 @@ // polyfill necessary for recycle list import 'intersection-observer'; import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; - import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin'; + import useKResponsiveWindow from 'kolibri.coreVue.composables.useKResponsiveWindow'; import CoreFullscreen from 'kolibri.coreVue.components.CoreFullscreen'; import '../utils/domPolyfills'; import { EventBus } from '../utils/event_utils'; @@ -146,7 +146,14 @@ RecycleList, CoreFullscreen, }, - mixins: [responsiveWindowMixin, commonCoreStrings], + mixins: [commonCoreStrings], + setup() { + const { windowIsLarge, windowIsSmall } = useKResponsiveWindow(); + return { + windowIsLarge, + windowIsSmall, + }; + }, data: () => ({ progress: null, scale: null,