From c56b7643307c0cad3a9685a5c94a96e9b18743fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 15 Nov 2018 20:16:44 +0100 Subject: [PATCH] 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 --- .../ui/contextitems/ve.ui.MWTransclusionContextItem.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ve-mw/ui/contextitems/ve.ui.MWTransclusionContextItem.js b/modules/ve-mw/ui/contextitems/ve.ui.MWTransclusionContextItem.js index 058141bea4..95ca2065e7 100644 --- a/modules/ve-mw/ui/contextitems/ve.ui.MWTransclusionContextItem.js +++ b/modules/ve-mw/ui/contextitems/ve.ui.MWTransclusionContextItem.js @@ -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 */