Skip to content

Commit 1a57671

Browse files
author
Daniel Herzog
committed
Fixed layout when sending big images; Some refactoring
1 parent cb98572 commit 1a57671

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/network/network_details_templates.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,11 @@ templates._request_body = function(req, do_raw)
330330
else
331331
ret.push(["p", ui_strings.S_NETWORK_N_BYTE_BODY.replace("%s", part.contentLength)]);
332332

333-
if (n < req.requestbody.partList.length - 1)
334-
ret.push(use_raw_boundary ? this._wrap_pre(req.boundary, HTTP_BOUNDARY_CLASS) : ["hr"]);
335-
else if (use_raw_boundary)
336-
ret.push(this._wrap_pre(req.boundary + "--\n", HTTP_BOUNDARY_CLASS));
333+
var boundary = use_raw_boundary ? req.boundary : ["hr"];
334+
if (use_raw_boundary && part === req.requestbody.partList.last)
335+
boundary += "--\n";
336+
337+
ret.push(this._wrap_pre(boundary, HTTP_BOUNDARY_CLASS));
337338
}
338339
}
339340
else if (req.requestbody.mimeType.startswith("application/x-www-form-urlencoded"))

src/network/network_style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
margin: 10px 0;
560560
}
561561

562-
table pre.network-body
562+
table .network-body
563563
{
564564
/* work-around CORE-46966: Big pre element breaks layout in a table */
565565
float: left;

0 commit comments

Comments
 (0)