tangled
alpha
login
or
join now
robinwobin.dev
/
witchsky.app
forked from
jollywhoppers.com/witchsky.app
0
fork
atom
Bluesky app fork with some witchin' additions 💫
0
fork
atom
overview
issues
pulls
pipelines
FIX chatbox input for mobile (hope)
xan.lol
4 months ago
e0f3a3c6
e67c36b0
verified
This commit was signed with the committer's
known signature
.
xan.lol
SSH Key Fingerprint:
SHA256:7Zs+dcly5YqxBg7v8XsE1uPMYCobHKBw7CDiNxpmSrY=
+14
-3
1 changed file
expand all
collapse all
unified
split
src
screens
Messages
components
MessagesList.tsx
+14
-3
src/screens/Messages/components/MessagesList.tsx
···
299
299
marginBottom: Math.max(keyboardHeight.get(), footerHeight.get()),
300
300
}))
301
301
302
302
-
const animatedStickyViewStyle = useAnimatedStyle(() => ({
303
303
-
// Removed negative translateY to prevent input from hovering over messages
304
304
-
}))
302
302
+
const animatedStickyViewStyle = useAnimatedStyle(() => {
303
303
+
// Only apply the negative translateY on mobile platforms.
304
304
+
// On web we leave the sticky view untranslated so the input doesn't hover over messages.
305
305
+
if (!isNative) {
306
306
+
return {
307
307
+
transform: [{translateY: 0}],
308
308
+
}
309
309
+
}
310
310
+
return {
311
311
+
transform: [
312
312
+
{translateY: -Math.max(keyboardHeight.get(), footerHeight.get())},
313
313
+
],
314
314
+
}
315
315
+
})
305
316
306
317
// -- Message sending
307
318
const onSendMessage = useCallback(