mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
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:
parent
79728eedc7
commit
c56b764330
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue