Skip to content

Commit 0ce62cf

Browse files
committed
fix for touch screen
1 parent b592675 commit 0ce62cf

File tree

2 files changed

+250
-64
lines changed

2 files changed

+250
-64
lines changed

app/globals.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,41 @@
3333
display: flex;
3434
align-items: center;
3535
justify-content: center;
36+
/* Prevent text selection */
37+
-webkit-touch-callout: none;
38+
-webkit-user-select: none;
39+
-khtml-user-select: none;
40+
-moz-user-select: none;
41+
-ms-user-select: none;
42+
user-select: none;
43+
/* Ensure text doesn't break */
44+
white-space: nowrap;
3645
}
3746

3847
.ptt-button:hover {
3948
transform: translateY(-2px);
4049
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
4150
}
51+
52+
/* Responsive styles for mobile devices */
53+
@media (max-width: 768px) {
54+
.ptt-button {
55+
height: 50px;
56+
padding: 0 20px;
57+
font-size: 15px;
58+
width: calc(100% - 20px);
59+
max-width: 300px;
60+
margin: 0 auto;
61+
}
62+
}
63+
64+
/* Smaller phones */
65+
@media (max-width: 480px) {
66+
.ptt-button {
67+
height: 60px;
68+
padding: 0 15px;
69+
font-size: 16px;
70+
font-weight: 600;
71+
width: calc(100% - 10px);
72+
}
73+
}

0 commit comments

Comments
 (0)