Skip to content

Commit d2064cb

Browse files
committed
Fix Iframe Size Typos
1 parent 20b3514 commit d2064cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ require(['gitbook'], function (gitbook) {
1212
size,
1313
count
1414
}) {
15-
var width = size === "large" ? "170px" : "160xp";
16-
var height = size === "large" ? "30" : "20xp";
15+
var width = size === "large" ? "170" : "160";
16+
var height = size === "large" ? "30" : "20";
1717
var extraParam = type === "watch" ? "&v=2" : "";
1818
return `<a class="btn pull-right" aria-label="github">
19-
<iframe style="display:inline-block;vertical-align:middle;" src="https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}&count=${count}&size=${size}${extraParam}" frameborder="0" scrolling="0" width="${width}" height="${height}"></iframe>
19+
<iframe style="display:inline-block;vertical-align:middle;" src="https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}&count=${count}&size=${size}${extraParam}" frameborder="0" scrolling="0" width="${width}px" height="${height}px"></iframe>
2020
</a>`;
2121
}
2222

0 commit comments

Comments
 (0)