Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

smarttcoder
Copy link
Contributor

Hey,
took care of this one, tested it
lemme know if u find any bugs

@github-actions github-actions bot added the extension A label for the LeetRooms web extension code label Apr 23, 2023
Comment on lines 54 to 68
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'
};
Copy link
Owner

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.

Comment on lines 52 to 53
const [autoScroll, setAutoScroll] = useState(true);
const [showNotification, setShowNotification] = useState(false);
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension A label for the LeetRooms web extension code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants