You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(chat): fade messages into the background at the list edges (#254)
Resolves#253.
Messages were clipped mid-line at the top of the list and at the chat
bar. The list now runs the full height of the screen so messages scroll
underneath the bar, and background-coloured gradients at both edges let
them dissolve instead of cutting off.
- ChatBar is an absolute overlay rather than a spacer taking layout
space; Messages takes its height as chatBarInset to keep the last
message resting above it and to size the bottom fade.
- ChatBar reports its baseline height instead of the live one, and
re-measures when the safe-area inset changes, so switching Android
navigation modes or rotating does not leave a stale baseline.
- On Android the bottom ramp reaches full opacity at the top of the
system navigation bar, driven entirely by insets.bottom, so gesture and
three-button modes both follow without a special case.
- Fades leave a right-edge gutter so they do not paint over the scroll
indicator, and are drawn below the scroll-to-bottom button so it keeps
receiving taps.
The layout and the Android navigation-bar handling were confirmed on a
physical device in both navigation modes. The later changes — scroll
indicator gutter, style memoisation, comment cleanup — are lint, type
and unit tested only, not yet re-checked on device.
0 commit comments