mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 01:12:48 -05:00
Fix clicking stream ids copying when no empty space
This commit is contained in:
@@ -282,6 +282,7 @@ function App({ wsEndpoint }) {
|
|||||||
|
|
||||||
const handleClickId = useCallback(
|
const handleClickId = useCallback(
|
||||||
(streamId) => {
|
(streamId) => {
|
||||||
|
navigator.clipboard.writeText(streamId)
|
||||||
const availableIdx = range(gridCount * gridCount).find(
|
const availableIdx = range(gridCount * gridCount).find(
|
||||||
(i) => !sharedState.views[i].streamId,
|
(i) => !sharedState.views[i].streamId,
|
||||||
)
|
)
|
||||||
@@ -289,7 +290,6 @@ function App({ wsEndpoint }) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
handleSetView(availableIdx, streamId)
|
handleSetView(availableIdx, streamId)
|
||||||
navigator.clipboard.writeText(streamId)
|
|
||||||
},
|
},
|
||||||
[gridCount, sharedState],
|
[gridCount, sharedState],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user