Skip to content

Commit

Permalink
Merge pull request #10616 from Pursottam6003/RemoveTextTruncator
Browse files Browse the repository at this point in the history
Fix Update2 #8532 Remove text truncator
  • Loading branch information
rtibbles authored May 3, 2023
2 parents 6402c35 + f5a7726 commit 4dad9b4
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions kolibri/plugins/learn/assets/src/views/ChannelCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
dir="auto"
:style="{ borderBottom: `1px solid ${$themeTokens.fineLine}` }"
>
<TextTruncator
<TextTruncatorCss
:text="title"
:maxHeight="titleHeight"
:maxLines="2"
:showTooltip="true"
/>
</h3>
Expand All @@ -43,9 +43,9 @@
span="3"
alignment="auto"
>
<TextTruncator
<TextTruncatorCss
:text="tagline"
:maxHeight="taglineHeight"
:maxLines="4"
:showTooltip="false"
/>
</KFixedGridItem>
Expand Down Expand Up @@ -84,15 +84,15 @@
import { validateLinkObject } from 'kolibri.utils.validators';
import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin';
import CoachContentLabel from 'kolibri.coreVue.components.CoachContentLabel';
import TextTruncator from 'kolibri.coreVue.components.TextTruncator';
import TextTruncatorCss from 'kolibri.coreVue.components.TextTruncatorCss';
import ChannelThumbnail from './ChannelThumbnail';
export default {
name: 'ChannelCard',
components: {
ChannelThumbnail,
CoachContentLabel,
TextTruncator,
TextTruncatorCss,
},
mixins: [responsiveWindowMixin],
props: {
Expand Down Expand Up @@ -153,12 +153,6 @@
minHeight: `${this.overallHeight}px`,
};
},
titleHeight() {
return 60;
},
taglineHeight() {
return 155;
},
versionStyle() {
return {
color: this.$themeTokens.annotation,
Expand Down

0 comments on commit 4dad9b4

Please sign in to comment.