Skip to content

Commit

Permalink
Update KResponsiveElementMixin to useKResponsiveElement - a v5 breaki…
Browse files Browse the repository at this point in the history
…ng change
  • Loading branch information
marcellamaki committed Oct 11, 2024
1 parent aaecc38 commit 554a11f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions kolibri/core/assets/src/views/SlotTruncator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,19 @@
<script>
import debounce from 'lodash/debounce';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
import useKResponsiveElement from 'kolibri-design-system/lib/composables/useKResponsiveElement';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
export default {
name: 'SlotTruncator',
mixins: [commonCoreStrings, responsiveElementMixin],
mixins: [commonCoreStrings],
setup() {
const { elementWidth, elementHeight } = useKResponsiveElement();
return {
elementWidth,
elementHeight,
};
},
props: {
maxHeight: {
type: Number,
Expand Down

0 comments on commit 554a11f

Please sign in to comment.