Commit 20eecf5 1 parent c60c274 commit 20eecf5 Copy full SHA for 20eecf5
File tree 2 files changed +14
-9
lines changed
GUI/ETVR/src/components/Settings/CamerasModal
2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change
1
+ import WebSocketHandler from '@components/WebSocket'
2
+
1
3
export interface IProps {
2
4
cameraHeight : number
3
5
cameraWidth ?: number
@@ -7,14 +9,15 @@ export interface IProps {
7
9
const CameraModalComponent = ( props : IProps ) => {
8
10
return (
9
11
< div >
10
- < iframe
12
+ < WebSocketHandler borderRadius = "rounded-[14px]" />
13
+ { /* <iframe
11
14
name="TV"
12
15
class="rounded-xl"
13
16
height={props.cameraHeight}
14
17
width={props.cameraWidth || '100%'}
15
18
src={props.cameraSrc}
16
19
allow="accelerometer; autoplay; clipboard-write; encrypted-media; picture-in-picture full"
17
- />
20
+ /> */ }
18
21
</ div >
19
22
)
20
23
}
Original file line number Diff line number Diff line change @@ -8,13 +8,15 @@ export interface IProps {
8
8
const CamerasModal = ( props : IProps ) => {
9
9
return (
10
10
< div class = "bg-[#333742] rounded-xl pl-[14px] pr-[14px] pb-[14px] pt-[14px] min-w-[500px]" >
11
- < For each = { props . camerasUrl } >
12
- { ( cameraUrl , index ) => (
13
- < div class = { `mb-[${ index ( ) > cameraUrl . length ? '0px' : '22px' } ]` } >
14
- < CameraModalComponent cameraHeight = { 400 } cameraSrc = { cameraUrl } />
15
- </ div >
16
- ) }
17
- </ For >
11
+ < div class = "overflow-y-auto" >
12
+ < For each = { props . camerasUrl } >
13
+ { ( cameraUrl , index ) => (
14
+ < div class = { ` mb-[${ index ( ) > cameraUrl . length ? '0px' : '22px' } ]` } >
15
+ < CameraModalComponent cameraHeight = { 400 } cameraSrc = { cameraUrl } />
16
+ </ div >
17
+ ) }
18
+ </ For >
19
+ </ div >
18
20
</ div >
19
21
)
20
22
}
You can’t perform that action at this time.
0 commit comments