From c2dc2e772e76a0baebf5e8042e5cdd3889bdd6cd Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Tue, 25 Oct 2022 16:38:14 -0600 Subject: [fix] Patch up a couple oversights --- static/main.js | 2 +- static/style.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'static') diff --git a/static/main.js b/static/main.js index 002a4fe..317bd18 100644 --- a/static/main.js +++ b/static/main.js @@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", () => { [...d[q]("mark")].forEach(e => e.tabIndex = "-1"); // Trigger like button animation - d.querySelector("#like-post").addEventListener("click", function() { + d.querySelector("#like-post")?.addEventListener("click", function() { setTimeout(() => this[l].remove("like-anim"), 700); this[l].add("like-anim"); this[l].add("liked"); diff --git a/static/style.css b/static/style.css index 0fbbc9e..3e981ff 100644 --- a/static/style.css +++ b/static/style.css @@ -333,7 +333,6 @@ pre { padding: 0 2rem; background: #e6e6e6; overflow-x: auto; - line-height: 1em; } kbd { -- cgit v1.2.3-70-g09d2