Pārlūkot izejas kodu

Maybe fix replacement issue

master
Roderic Day pirms 5 gadiem
vecāks
revīzija
c8937f41c7
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      apps/streams.js

+ 2
- 2
apps/streams.js Parādīt failu

@@ -139,7 +139,7 @@ const Video = {
height: '100%',
transform: 'scaleX(-1)',
}
return m('.video-container', {key: username, style: styleOuter},
return m('.video-container', {style: styleOuter},
m('.video-info', {style: {position: 'absolute', zIndex: 999}},
m('span', {style: {padding: '5px'}}, username),
),
@@ -179,7 +179,7 @@ const StreamContainer = {
return m('.videos', {style},
m(Video, {username: State.username}),
State.online.filter(username => username != State.username)
.map(username => m(Video, {username}))
.map(username => m(Video, {key: username, username}))
)
},
}

Notiek ielāde…
Atcelt
Saglabāt