Skip to content

Commit

Permalink
Reaplce TextTruncator with TextTruncatorCss
Browse files Browse the repository at this point in the history
  • Loading branch information
muditchoudhary committed Sep 18, 2023
1 parent bed1128 commit a1527a6
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
/>
</div>
<h3 class="title">
<TextTruncator
<TextTruncatorCss
:text="content.title"
:maxHeight="maxTitleHeight"
:maxLines="1"
:style="{ color: $themeTokens.text }"
/>
</h3>
Expand All @@ -41,7 +41,7 @@
<script>
import { validateLinkObject } from 'kolibri.utils.validators';
import TextTruncator from 'kolibri.coreVue.components.TextTruncator';
import TextTruncatorCss from 'kolibri.coreVue.components.TextTruncatorCss';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import ProgressBar from './ProgressBar';
import LearningActivityLabel from './LearningActivityLabel';
Expand All @@ -52,7 +52,7 @@
name: 'HybridLearningLessonCard',
components: {
CardThumbnail,
TextTruncator,
TextTruncatorCss,
LearningActivityLabel,
ProgressBar,
},
Expand All @@ -72,11 +72,6 @@
default: false,
},
},
computed: {
maxTitleHeight() {
return 40;
},
},
};
</script>
Expand Down

0 comments on commit a1527a6

Please sign in to comment.