Skip to content

Commit fed649b

Browse files
committed
Remove inline styles
1 parent dd32e68 commit fed649b

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

frontend/src/html/pages/test-result.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
class="textButton hidden"
108108
aria-label="Report quote"
109109
data-balloon-pos="up"
110-
style="display: inline-block"
111110
>
112111
<i class="icon fas fa-fw fa-flag"></i>
113112
</span>
@@ -116,7 +115,6 @@
116115
class="textButton hidden"
117116
aria-label="Favorite quote"
118117
data-balloon-pos="up"
119-
style="display: inline-block"
120118
>
121119
<i class="icon far fa-fw fa-heart"></i>
122120
</span>

frontend/src/ts/test/result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ function updateQuoteFavorite(randomQuote: Quote | null): void {
921921
const icon = qs(".pageTest #result #favoriteQuoteButton .icon");
922922

923923
if (Config.mode !== "quote" || !isAuthenticated()) {
924-
icon?.getParent()?.setStyle({ display: "none" });
924+
icon?.getParent()?.hide();
925925
return;
926926
}
927927

0 commit comments

Comments
 (0)