Skip to content

Commit

Permalink
feat(calendar): show full event name in calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Sep 6, 2024
1 parent e9dd049 commit 29f79f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ document.addEventListener('DOMContentLoaded', function () {
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [dayGridPlugin, iCalendarPlugin],
eventDisplay: 'block',
eventSources: [
{
url: 'index.ics',
Expand Down
5 changes: 5 additions & 0 deletions layouts/events/list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{{ define "main" }}
<div class="container mt-100 mt-60">
<style>
.fc-daygrid-event {
white-space: break-spaces;
}
</style>
<div class="justify-content-center mx-auto col-sm-6">
<div id='calendar' class="mb-4"></div>
{{ $js := resources.Get "js/calendar.js" }}
Expand Down

0 comments on commit 29f79f9

Please sign in to comment.