Skip to content

Commit 451808d

Browse files
author
Alex Front
committed
Improve mobile responsiveness and touch interactions
1 parent 857da0c commit 451808d

File tree

6 files changed

+24
-15
lines changed

6 files changed

+24
-15
lines changed

docs/assets/index-BVydfPPx.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/assets/index-DH0ayYGO.js renamed to docs/assets/index-CwLOejWY.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-Dcbw9zNv.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Cursor Burn</title>
7-
<script type="module" crossorigin src="/cursorburn/assets/index-DH0ayYGO.js"></script>
8-
<link rel="stylesheet" crossorigin href="/cursorburn/assets/index-BVydfPPx.css">
7+
<script type="module" crossorigin src="/cursorburn/assets/index-CwLOejWY.js"></script>
8+
<link rel="stylesheet" crossorigin href="/cursorburn/assets/index-Dcbw9zNv.css">
99
</head>
1010
<body>
1111
<div id="root"></div>

src/App.css

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
text-transform: uppercase;
4343
letter-spacing: 1px;
4444
user-select: none;
45+
touch-action: manipulation;
46+
min-height: 36px;
4547
}
4648

4749
.button:hover {
@@ -105,14 +107,14 @@
105107

106108
@media screen and (max-width: 768px) {
107109
.button {
108-
padding: 6px 10px;
110+
padding: 8px 12px;
109111
font-size: 12px;
110112
}
111113

112114
.buttonsContainer {
113115
bottom: 20px;
114116
padding: 10px;
115-
gap: 5px;
117+
gap: 8px;
116118
}
117119

118120
.toggleButton, .githubLink {
@@ -131,17 +133,16 @@
131133
}
132134
}
133135

134-
@media screen and (max-height: 600px) {
135-
.buttonsContainer {
136-
bottom: 10px;
137-
padding: 5px;
138-
}
139-
}
140-
141136
@media screen and (max-width: 480px) {
142137
.button {
143-
padding: 4px 8px;
144-
font-size: 10px;
138+
padding: 6px 10px;
139+
font-size: 11px;
140+
}
141+
142+
.buttonsContainer {
143+
gap: 6px;
144+
padding: 8px;
145+
bottom: 15px;
145146
}
146147

147148
.toggleButton, .githubLink {
@@ -159,3 +160,10 @@
159160
height: 6px;
160161
}
161162
}
163+
164+
@media screen and (max-height: 600px) {
165+
.buttonsContainer {
166+
bottom: 10px;
167+
padding: 5px;
168+
}
169+
}

src/CursorBurn.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const styles = {
5959
height: '100%',
6060
position: 'relative' as const,
6161
overflow: 'hidden',
62+
pointerEvents: 'none' as const, // Пропускаем все события мыши
6263
},
6364
canvas: {
6465
cursor: 'none',

0 commit comments

Comments
 (0)