tangled
alpha
login
or
join now
bwc9876.dev
/
manhunt-app
0
fork
atom
Live location tracking and playback for the game "manhunt"
0
fork
atom
overview
issues
pulls
1
pipelines
View Transitions on screen change
bwc9876.dev
3 weeks ago
9eeb59a8
79517e8d
verified
This commit was signed with the committer's
known signature
.
bwc9876.dev
SSH Key Fingerprint:
SHA256:DanMEP/RNlSC7pAVbnXO6wzQV00rqyKj053tz4uH5gQ=
+10
-2
2 changed files
expand all
collapse all
unified
split
frontend
src
components
App.tsx
style.css
+9
-1
frontend/src/components/App.tsx
···
27
27
const [currentScreen, setScreen] = useState(initialScreen);
28
28
29
29
useTauriEvent("changeScreen", (newScreen) => {
30
30
-
setScreen(newScreen);
30
30
+
const update = () => {
31
31
+
setScreen(newScreen);
32
32
+
};
33
33
+
34
34
+
if (document.startViewTransition) {
35
35
+
document.startViewTransition(update);
36
36
+
} else {
37
37
+
update();
38
38
+
}
31
39
});
32
40
33
41
return (
+1
-1
frontend/src/style.css
···
139
139
border-radius: 0;
140
140
border: none;
141
141
margin: 0;
142
142
-
box-shadow: 0 0 25px black;
142
142
+
/* box-shadow: 0 0 25px black; */
143
143
width: 105%;
144
144
145
145
&:first-child {