diff --git a/CHANGELOG.md b/CHANGELOG.md index b6cdafa7..ba26826e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### New features +* #231: [polls](https://livingston.frama.io/peertube-plugin-livechat/documentation/user/streamers/polls/). * #233: new option to [mute anonymous users](https://livingston.frama.io/peertube-plugin-livechat/documentation/user/streamers/moderation/). * #18: terms & conditions. You can configure terms&conditions on your instance that will be shown to each joining users. Streamers can also add [terms&conditions in their channels options](https://livingston.frama.io/peertube-plugin-livechat/documentation/user/streamers/terms/). diff --git a/conversejs/custom/plugins/poll/styles/poll-form.scss b/conversejs/custom/plugins/poll/styles/poll-form.scss index 6476d183..4c53338e 100644 --- a/conversejs/custom/plugins/poll/styles/poll-form.scss +++ b/conversejs/custom/plugins/poll/styles/poll-form.scss @@ -4,11 +4,14 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -livechat-converse-poll-form-modal { - /* Special case: when the form is in a modal */ +.conversejs { + livechat-converse-poll-form-modal { + /* Special case: when the form is in a modal */ - .converse-form { - max-height: 50vh; - overflow-y: scroll; + .converse-form { + max-height: 50vh; + overflow-y: scroll; + padding-top: 0; + } } } diff --git a/conversejs/custom/plugins/poll/templates/poll-form.js b/conversejs/custom/plugins/poll/templates/poll-form.js index 085ea040..4e831171 100644 --- a/conversejs/custom/plugins/poll/templates/poll-form.js +++ b/conversejs/custom/plugins/poll/templates/poll-form.js @@ -2,11 +2,16 @@ // // SPDX-License-Identifier: AGPL-3.0-only +import { converseLocalizedHelpUrl } from '../../../shared/lib/help' import { html } from 'lit' import { __ } from 'i18n' - export function tplPollForm (el) { const i18nOk = __('Ok') + // eslint-disable-next-line no-undef + const i18nHelp = __(LOC_online_help) + const helpUrl = converseLocalizedHelpUrl({ + page: 'documentation/user/streamers/polls' + }) return html` ${el.alert_message ? html`