Skip to content

Commit

Permalink
7.1.2
Browse files Browse the repository at this point in the history
fix box border radius
  • Loading branch information
RandomPerson3465 committed Sep 1, 2024
1 parent 69e8574 commit 4e655fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion top50/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ <h2>Audit Settings</h2>
</div>
<div>
<br>
<label>Box Border Radius</label><br>
<label>Box Border Roundness (0-100)</label><br>
<input value="0" id="boxBorderRadius" autocomplete="off"><label>%</label>
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion top50/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,11 @@ function fix() {
if (card.className.split(' ').includes("selected") == false) {
card.style.border = "solid 0.1em " + data.boxBorder;
}
card.style.borderRadius = data.boxBorderRadius + "%";
if (["top100","top150","top100H","top150H"].includes(data.theme)) {
card.style.borderRadius = (((parseFloat(data.boxBorderRadius) || 0) / 200) * 2.15) + "vw " + (((parseFloat(data.boxBorderRadius) || 0) / 200) * 2.15) + "vw";
} else {
card.style.borderRadius = (((parseFloat(data.boxBorderRadius) || 0) / 200) * 4.25) + "vw " + (((parseFloat(data.boxBorderRadius) || 0) / 200) * 4.25) + "vw";
}
});
document.querySelectorAll('.image').forEach(function (card) {
card.style.borderRadius = data.imageBorder + "%";
Expand Down

0 comments on commit 4e655fa

Please sign in to comment.