Skip to content

Commit d0b871e

Browse files
committed
ad
1 parent 4d26ae4 commit d0b871e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎pinterest-embed.html‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1111
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
1212
<style>
13+
14+
body {
15+
margin: 0;
16+
}
17+
1318
body>span {
19+
display: block !important;
20+
1421
width: 100% !important;
1522
max-width: 100% !important;
1623

@@ -19,7 +26,7 @@
1926
}
2027

2128
span[class*="_bd"] {
22-
height: 100% !important;
29+
/* height: 100% !important; */
2330
}
2431

2532
.errorMessage {
@@ -208,7 +215,7 @@
208215
let pinsPerRow = 4
209216
if (args.rowCount) pinsPerRow = parseInt(args.rowCount)
210217
embedA.setAttribute("data-pin-scale-width", 1000 / pinsPerRow);
211-
embedA.setAttribute("data-pin-scale-height", args.height ?? 500);
218+
embedA.setAttribute("data-pin-scale-height", (args.height ?? 500) - 110);
212219

213220
if (args.url) {
214221

0 commit comments

Comments
 (0)