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