Skip to content

Commit c5ae913

Browse files
hankhsu1996claude
andcommitted
Fix mobile safe area and button active state
- Add viewport-fit=cover for safe area CSS to work - Disable button brightness filter on touch devices 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ab0df7f commit c5ae913

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en" data-theme="light">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
66

77
<!-- Primary Meta Tags -->
88
<title>Blackjack Basic Strategy</title>

web/src/app.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,12 @@
1717
* {
1818
-webkit-tap-highlight-color: transparent;
1919
}
20+
21+
/* Disable button active state darkening on touch devices */
22+
@media (hover: none) {
23+
.btn:active:not(:focus-visible) {
24+
--tw-brightness: none;
25+
filter: none;
26+
}
27+
}
2028
}

0 commit comments

Comments
 (0)