UI: forces full height of calendar on upcoming events (#630)

This commit is contained in:
Joffrey JAFFEUX 2024-10-23 19:09:26 +09:00 committed by GitHub
parent 6a918390a5
commit 223697e880
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ export default Component.extend({
this._loadCalendar().then(() => { this._loadCalendar().then(() => {
const fullCalendar = new window.FullCalendar.Calendar(calendarNode, { const fullCalendar = new window.FullCalendar.Calendar(calendarNode, {
...fullCalendarDefaultOptions(), ...fullCalendarDefaultOptions(),
height: "parent",
eventPositioned: (info) => { eventPositioned: (info) => {
if (siteSettings.events_max_rows === 0) { if (siteSettings.events_max_rows === 0) {
return; return;

View File

@ -1,4 +1,5 @@
.discourse-post-event-upcoming-events { .discourse-post-event-upcoming-events {
height: 100%;
.upcoming-events-table { .upcoming-events-table {
width: 100%; width: 100%;