Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

Commit 0aa774d

Browse files
committed
#45 Net panel layout broken
1 parent d520388 commit 0aa774d

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

chrome/content/network-content-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ window.on(EVENTS.RECEIVED_REQUEST_HEADERS, (event, from) => {
2323

2424
// Append WebSocket icon in the UI
2525
var hbox = item._target;
26-
var status = hbox.querySelector(".requests-menu-status");
26+
var status = hbox.querySelector(".requests-menu-method");
2727
status.classList.add("websocket");
2828

2929
// Register click handler and emit an event that is handled

chrome/skin/classic/netmonitor.css

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44
/* Network Panel */
55

66
/* Web Socket Icon */
7-
.requests-menu-status.websocket {
7+
.requests-menu-method.websocket {
88
background-image: url("./tool-websockets.svg");
99
background-repeat: no-repeat;
10-
background-position: 0 center;
11-
width: 16px;
12-
height: 16px;
13-
transition: none;
14-
border-radius: 0;
15-
margin: 2px;
10+
background-position: 0 1px;
11+
}
1612

13+
/* Make sure the icon works in all themes */
14+
.theme-firebug .requests-menu-method.websocket,
15+
.theme-light .requests-menu-method.websocket {
1716
/* Path to built-in theme resource has changed in Firefox 45
18-
Befor: 45: chrome://devtools/skin/themes/images/filters.svg#invert
17+
Before: 45: chrome://devtools/skin/themes/images/filters.svg#invert
1918
45+: chrome://devtools/skin//images/filters.svg#invert
20-
The local copy can be remove as soon as the min Fx version is 45*/
19+
The local copy can be removed as soon as the min Fx version is 45 */
2120
filter: url(./filters.svg#invert);
2221
}
2322

0 commit comments

Comments
 (0)