diff --git a/src/module/WidescreenMode.js b/src/module/WidescreenMode.js index b819764..14bb605 100644 --- a/src/module/WidescreenMode.js +++ b/src/module/WidescreenMode.js @@ -18,6 +18,7 @@ export default class WidescreenMode { this.scrollMultiplicator = parseInt(Settings.get('WidescreenMode.settings.scroll_speed')) || 1; this.displayBenisUntilTop = Settings.get("WidescreenMode.settings.display_benis_until_top"); this.biggerStreamNavIcons = Settings.get("WidescreenMode.settings.bigger_stream_nav_icons"); + this.commentsLeft = Settings.get("WidescreenMode.settings.comments_left"); } @@ -117,6 +118,11 @@ export default class WidescreenMode { description: 'Definiere, wie schnell im Zoom gescrollt werden soll.', type: 'number' }, + { + id: 'comments_left', + title: 'Kommentare auf der linken Seite', + description: 'Wenn deaktiviert werden Kommentare auf der rechten Seite des Bildschirms angezeigt.', + }, ]; } @@ -215,6 +221,10 @@ export default class WidescreenMode { document.getElementsByClassName('stream-prev-icon')[0].classList.add('stream-prev-icon-xl'); document.getElementsByClassName('stream-next-icon')[0].classList.add('stream-next-icon-xl'); } + + if(!_this.commentsLeft) { + document.getElementsByClassName('item-container-content')[0].classList.add('right'); + } }, remove: function () { this.parent(); diff --git a/src/style/widescreenMode.less b/src/style/widescreenMode.less index 8aed845..98ffb90 100644 --- a/src/style/widescreenMode.less +++ b/src/style/widescreenMode.less @@ -197,6 +197,23 @@ body[class] { .item-container-content { display: flex; + + &.right { + flex-direction: row-reverse; + + .comments-switch { + transform: rotate(180deg); + } + + .video-controls { + padding-left: 30px; + } + + .stream-prev { + margin-left: 30px; + } + } + height: 100%; width: 100%; diff --git a/src/template/streamItemComments.html b/src/template/streamItemComments.html index 5a3f275..067ff38 100644 --- a/src/template/streamItemComments.html +++ b/src/template/streamItemComments.html @@ -1,7 +1,7 @@
c {"Kommentar".inflect(commentCount)}
-
-
+
+