ve.ui.MWTransclusionContextItem: Remove "Generated from" prefix from description (mobile)

It does not provide any additional information, and it is long enough
that it causes the actual template name(s) to not fit on the screen on
small mobile sizes.

Bug: T209610
Change-Id: I47a995905fef5aa2cabb2b3215111de0b506e7f7
This commit is contained in:
Bartosz Dziewoński 2018-11-15 20:16:44 +01:00
parent 79728eedc7
commit c56b764330

View file

@ -74,6 +74,14 @@ ve.ui.MWTransclusionContextItem.prototype.getDescription = function () {
);
};
/**
* @inheritdoc
*/
ve.ui.LinearContextItem.prototype.renderDescription = function () {
// No "Generated from" prefix in mobile context
this.$description.text( ve.ce.MWTransclusionNode.static.getDescription( this.model ) );
};
/**
* @inheritdoc
*/