Skip to content

Commit a7a36dd

Browse files
committed
fix: make heading anchors in article visible on mobile
1 parent 572553d commit a7a36dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/layouts/PostDetails.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const nextPost =
211211
heading.classList.add("group");
212212
const link = document.createElement("a");
213213
link.className =
214-
"heading-link ms-2 opacity-0 group-hover:opacity-100 focus:opacity-100";
214+
"heading-link ms-2 no-underline opacity-75 md:opacity-0 md:group-hover:opacity-100 md:focus:opacity-100";
215215
link.href = "#" + heading.id;
216216

217217
const span = document.createElement("span");

0 commit comments

Comments
 (0)