diff --git a/CHANGELOG.md b/CHANGELOG.md index 80963c6b..ca5261b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v0.0.8 + +### Features + +* The chat is displayed on the right of the video + ## v0.0.7 ### Bug Fixes diff --git a/assets/style.css b/assets/style.css index 5b052a1c..5472cfc9 100644 --- a/assets/style.css +++ b/assets/style.css @@ -1,6 +1,3 @@ iframe.peertube-plugin-livechat { border: 1px solid black; - width: 100%; - height: 300px; - resize: vertical; } diff --git a/client/videowatch-client-plugin.js b/client/videowatch-client-plugin.js index cc904e35..43dbc96d 100644 --- a/client/videowatch-client-plugin.js +++ b/client/videowatch-client-plugin.js @@ -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)