feat/PIP#32
Open
FioriDeveloper wants to merge 6 commits into
Open
Conversation
xandfcosta
requested changes
Jun 10, 2026
Contributor
There was a problem hiding this comment.
Pode remover isso aq, você tá dando permissão pro Claude rodar comandos arbitrários na sua máquina
| setIsClosed(isPipActive); | ||
| }, [isPipActive, setIsClosed]); | ||
|
|
||
| const handleMouseUp = useCallback(() => stopDrag(), [stopDrag]); |
Contributor
There was a problem hiding this comment.
Pra que vc criou um wrapper pro stopDrag?
Comment on lines
+72
to
+82
| {pipWindow && | ||
| createPortal( | ||
| <div | ||
| className={`wv:fixed wv:inset-0 wv:flex wv:flex-col wv:items-center wv:justify-center wv:bg-background wv:overflow-hidden wv:m-0 wv:p-0 ${resolvedTheme}`} | ||
| > | ||
| <div className="wv:h-full wv:w-full wv:flex wv:flex-col"> | ||
| {screen === "keyboard" ? <OutgoingScreen /> : callScreens} | ||
| </div> | ||
| </div>, | ||
| pipWindow.document.body, | ||
| )} |
Contributor
There was a problem hiding this comment.
Transforme isso em um componente
|
|
||
| return ( | ||
| <> | ||
| {!isPipActive && <StatusBar />} |
Contributor
There was a problem hiding this comment.
Por que vai sumir a StatusBar do webphone quando o Pip estiver aberto, o portal nem manda isso pro PIP?
| {screen === "outgoing" && <OutgoingScreen />} | ||
| {screen === "call" && <CallScreen />} | ||
| {screen === "keyboard" && <KeyboardScreen />} | ||
| {!pipWindow && callScreens} |
Contributor
There was a problem hiding this comment.
Em alguns lugares você usa o isPipActive, outro !pipWindow. Mantenha um padrão
Comment on lines
+157
to
+158
| const isPipRef = React.useRef(isPipActive); | ||
| isPipRef.current = isPipActive; |
Contributor
There was a problem hiding this comment.
Você está setando o memos valor duas vezes, o React.useRef já inicializa a ref com o valor do isPipActive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Substitui a implementação antiga baseada em canvas/video pelo
Document Picture-in-Picture API, renderizando os componentes
React reais em uma janela flutuante nativa do sistema.