Skip to content

Commit 3ba6664

Browse files
committed
responsive fixes
1 parent 3ebf4e8 commit 3ba6664

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/components/Button.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { variant, href } = Astro.props;
1212
align-items: center;
1313
gap: 0.5rem;
1414
border-radius: 1rem;
15-
padding: 0.75rem 1.75rem;
15+
padding: 0.75rem 1.25rem;
1616
font-weight: 600;
1717
font-size: 0.875rem;
1818
line-height: 1.25rem;
@@ -63,6 +63,7 @@ const { variant, href } = Astro.props;
6363
.btn {
6464
font-size: 1rem;
6565
line-height: 1.5rem;
66+
padding: 0.75rem 1.75rem;
6667
}
6768
}
6869
</style>

src/components/Starfield.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@
6161

6262
onResize(); // update the size once
6363
window.addEventListener("resize", onResize);
64-
window.addEventListener("pointermove", onMouseMove);
65-
window.addEventListener("scroll", onScroll);
64+
if (!("ontouchstart" in window || navigator.maxTouchPoints > 0)) {
65+
window.addEventListener("mousemove", onMouseMove);
66+
window.addEventListener("scroll", onScroll);
67+
}
6668
requestAnimationFrame(onDraw);
6769
})();
6870
</script>

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const latestVersion = data.tag_name || 'v1.0.0';
128128
<SectionTitle title="Answers to common questions" caption="FAQ"/>
129129
<div class="container">
130130
<Accordion title="How do I install Eclipse Menu?" icon={helpIcon}>
131-
Please refer to the <a href="#install">installation guide</a>.
131+
Please refer to the <a href="#how-to-install">installation guide</a>.
132132
</Accordion>
133133
<Accordion title="Is this free?" icon={helpIcon}>
134134
Yes, Eclipse Menu is completely free to use. <br/>

0 commit comments

Comments
 (0)