mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
ac9f1a0919
Split the toolbar into two modes depending on if the surface is focused: * When unfocused, show a hamburger containing back and source switch * When focused, show editing tools, and a check button to unfocus For the editing toolbar, space the tools out using table-cell layout and hide labels below 480px. Depends on I06813e3ff in core (surface blur method). Bug: T93325 Change-Id: Ibf09cb29019d7a71e1e144b326710b1f6506cd0c
27 lines
767 B
JavaScript
27 lines
767 B
JavaScript
/*!
|
|
* VisualEditor UserInterface MediaWiki MobileLinkInspectorTool classes.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* UserInterface mobile link tool
|
|
*
|
|
* @class
|
|
* @extends ve.ui.MWLinkInspectorTool
|
|
*
|
|
* @constructor
|
|
* @param {OO.ui.ToolGroup} toolGroup
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWMobileLinkInspectorTool = function VeUiMwMobileLinkInspectorTool() {
|
|
ve.ui.MWMobileLinkInspectorTool.super.apply( this, arguments );
|
|
};
|
|
|
|
OO.inheritClass( ve.ui.MWMobileLinkInspectorTool, ve.ui.MWLinkInspectorTool );
|
|
|
|
ve.ui.MWMobileLinkInspectorTool.static.displayBothIconAndLabel = true;
|
|
|
|
ve.ui.toolFactory.register( ve.ui.MWMobileLinkInspectorTool );
|