Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1214)

Unified Diff: Source/devtools/front_end/components/ShortcutsScreen.js

Issue 1291483002: DevTools: improved layout for Kbd Shortcuts & Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: no more space before Shortcuts on left menu Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/components/ShortcutsScreen.js
diff --git a/Source/devtools/front_end/components/ShortcutsScreen.js b/Source/devtools/front_end/components/ShortcutsScreen.js
index c0b44ba355dceb60e9b27c74e2fcd4bbfc8e026a..eacd1141b47c0846fdd21b4278c913c824958fb5 100644
--- a/Source/devtools/front_end/components/ShortcutsScreen.js
+++ b/Source/devtools/front_end/components/ShortcutsScreen.js
@@ -145,15 +145,14 @@ WebInspector.ShortcutsSection.prototype = {
var parent = container.createChild("div", "help-block");
var headLine = parent.createChild("div", "help-line");
- headLine.createChild("div", "help-key-cell");
headLine.createChild("div", "help-section-title help-cell").textContent = this.name;
for (var i = 0; i < this._lines.length; ++i) {
var line = parent.createChild("div", "help-line");
+ line.createChild("div", "help-cell").textContent = this._lines[i].text;
var keyCell = line.createChild("div", "help-key-cell");
- keyCell.appendChild(this._lines[i].key);
keyCell.appendChild(this._createSpan("help-key-delimiter", ":"));
- line.createChild("div", "help-cell").textContent = this._lines[i].text;
+ keyCell.appendChild(this._lines[i].key);
}
},
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/helpScreen.css » ('j') | Source/devtools/front_end/ui/helpScreen.css » ('J')

Powered by Google App Engine
This is Rietveld 408576698