chrome-devtools-frontend 1.0.1032322 → 1.0.1032471
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,6 +186,12 @@ export class InspectorView extends VBox implements ViewLocationResolver {
|
|
186
186
|
|
187
187
|
this.tabbedPane = this.tabbedLocation.tabbedPane();
|
188
188
|
this.tabbedPane.element.classList.add('main-tabbed-pane');
|
189
|
+
// The 'Inspect element' and 'Device mode' buttons in the tabs toolbar takes longer to load than
|
190
|
+
// the tabs themselves, so a space equal to the buttons' total width is preemptively allocated
|
191
|
+
// to prevent to prevent a shift in the tab layout. Note that when DevTools cannot be docked,
|
192
|
+
// the Device mode button is not added and so the allocated space is smaller.
|
193
|
+
const allocatedSpace = Root.Runtime.Runtime.queryParam(Root.Runtime.ConditionName.CAN_DOCK) ? '69px' : '41px';
|
194
|
+
this.tabbedPane.leftToolbar().element.style.minWidth = allocatedSpace;
|
189
195
|
this.tabbedPane.registerRequiredCSS(inspectorViewTabbedPaneStyles);
|
190
196
|
this.tabbedPane.addEventListener(TabbedPaneEvents.TabSelected, this.tabSelected, this);
|
191
197
|
this.tabbedPane.setAccessibleName(i18nString(UIStrings.panels));
|
package/package.json
CHANGED