The chat is displayed on the right of the video.
This commit is contained in:
parent
767b9d0a27
commit
e41938f773
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.0.8
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* The chat is displayed on the right of the video
|
||||||
|
|
||||||
## v0.0.7
|
## v0.0.7
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
iframe.peertube-plugin-livechat {
|
iframe.peertube-plugin-livechat {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
width: 100%;
|
|
||||||
height: 300px;
|
|
||||||
resize: vertical;
|
|
||||||
}
|
}
|
||||||
|
@ -110,15 +110,6 @@ function openChat () {
|
|||||||
logger.info('Opening the chat...')
|
logger.info('Opening the chat...')
|
||||||
const videoWrapper = document.querySelector('#video-wrapper')
|
const videoWrapper = document.querySelector('#video-wrapper')
|
||||||
|
|
||||||
// Adding a class=row element
|
|
||||||
const row = document.createElement('div')
|
|
||||||
row.classList.add(
|
|
||||||
'row',
|
|
||||||
'peertube-plugin-livechat-stuff',
|
|
||||||
'peertube-plugin-livechat-iframe-stuff'
|
|
||||||
)
|
|
||||||
videoWrapper.after(row)
|
|
||||||
|
|
||||||
// Creating the iframe...
|
// Creating the iframe...
|
||||||
const iframe = document.createElement('iframe')
|
const iframe = document.createElement('iframe')
|
||||||
iframe.setAttribute('src', iframeUri)
|
iframe.setAttribute('src', iframeUri)
|
||||||
@ -132,7 +123,7 @@ function openChat () {
|
|||||||
if (additionalStyles) {
|
if (additionalStyles) {
|
||||||
iframe.setAttribute('style', additionalStyles)
|
iframe.setAttribute('style', additionalStyles)
|
||||||
}
|
}
|
||||||
row.after(iframe)
|
videoWrapper.append(iframe)
|
||||||
|
|
||||||
// showing/hiding buttons...
|
// showing/hiding buttons...
|
||||||
toggleShowHideButtons(true)
|
toggleShowHideButtons(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user