Skip to content

Commit 4c410e1

Browse files
author
CloudLobster
committed
fix: add overflow:visible to SVG animations
Prevents clipping of pulse/orbit animations on mobile where SVG default overflow:hidden crops animated elements.
1 parent 8b17aff commit 4c410e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/components/IdentityAnimation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function IdentityAnimation() {
44
return (
55
<div className="w-full max-w-lg mx-auto my-8 md:my-16">
66
{/* Viewbox tuned for mobile sizing & clarity */}
7-
<svg viewBox="0 0 400 300" xmlns="http://www.w3.org/2000/svg" className="w-full h-auto">
7+
<svg viewBox="0 0 400 300" xmlns="http://www.w3.org/2000/svg" className="w-full h-auto" style={{overflow: 'visible'}}>
88
<style>
99
{`
1010
.track { stroke: #222; stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }

web/src/components/RegisterFlowAnimation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function RegisterFlowAnimation() {
44
return (
55
<div className="w-full max-w-lg mx-auto my-8 md:my-16">
66
{/* Mobile-first, tightly packed viewBox for large rendering on small screens */}
7-
<svg viewBox="0 0 400 160" xmlns="http://www.w3.org/2000/svg" className="w-full h-auto">
7+
<svg viewBox="0 0 400 160" xmlns="http://www.w3.org/2000/svg" className="w-full h-auto" style={{overflow: 'visible'}}>
88
<style>
99
{`
1010
.track { stroke: #222; stroke-width: 2; stroke-linecap: round; }

0 commit comments

Comments
 (0)