-
Notifications
You must be signed in to change notification settings - Fork 432
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
feat: Convert to Side Panel View #2498
base: develop
Are you sure you want to change the base?
Conversation
@vvvvvv1vvvvvv is this something that could potentially get merged in? what are your thoughts? |
@vvvvvv1vvvvvv @heisenberg-2077 could you please have a look at this PR? It is a really nice feature |
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.
just my 2 cents, though i am not a react-guru, but i really want that sidebar ;)
@@ -3,7 +3,7 @@ | |||
.current-connection-block { | |||
// position: absolute; | |||
bottom: 24px; | |||
width: 360px; | |||
//width: 360px; |
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.
if leaving commented code, doesn't this required a TODO or explanation as to why?
|
||
// Clean up the listener on component unmount | ||
return () => { | ||
chrome.runtime.onMessage.removeListener(handleTabUpdate); |
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.
isn't useEffect() called multiple times, and this means you are starting an interval call to getCurrentSite() every 5 seconds multiple times, because there is not clearInterval()
in the returned method
Using Chrome extension feature to display as a side panel instead of the default popup.
There were quite a few places that had hard-coded height and width values. I tried my best to fix all the styles to make the view more dynamic but might have missed a few.
Closes #2159