-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix auto scroll pause in chat #26
base: main
Are you sure you want to change the base?
Conversation
extension/src/components/Room.tsx
Outdated
const notificationStyles: CSSProperties = { | ||
position: 'absolute', | ||
bottom: '60px', | ||
left: '50%', | ||
transform: 'translateX(-50%)', | ||
backgroundColor: '#444', | ||
color: 'white', | ||
padding: '10px', | ||
borderRadius: '5px', | ||
opacity: showNotification ? 1 : 0, | ||
transition: 'opacity 0.5s', | ||
pointerEvents: 'none', | ||
fontSize: '12px', | ||
whiteSpace: 'nowrap' | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use tailwind css styles.
extension/src/components/Room.tsx
Outdated
const [autoScroll, setAutoScroll] = useState(true); | ||
const [showNotification, setShowNotification] = useState(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to use 2 state variables? Why can't we also just use autoScroll
for determining when to show the notification?
Hey,
took care of this one, tested it
lemme know if u find any bugs