diff options
Diffstat (limited to 'public')
-rwxr-xr-x | public/css/style.css | 39 | ||||
-rw-r--r-- | public/js/modules/event-edit.js | 2 | ||||
-rw-r--r-- | public/js/modules/group-edit.js | 5 | ||||
-rw-r--r-- | public/js/modules/new.js | 7 |
4 files changed, 51 insertions, 2 deletions
diff --git a/public/css/style.css b/public/css/style.css index dd59d6b..24d10b8 100755 --- a/public/css/style.css +++ b/public/css/style.css @@ -381,7 +381,7 @@ li.hidden-attendee .attendee-name { } } -@media (min-width: 577px) { +@media (min-width: 576px) { #sidebar { border-right: 2px solid #e0e0e0; min-height: 100vh; @@ -422,7 +422,7 @@ li.hidden-attendee .attendee-name { } .list-group-item-action:hover { - background-color: #d4edda; + background-color: #f2f8ff; } .code { @@ -548,3 +548,38 @@ img.group-preview__image { opacity: 1; pointer-events: auto; } + +ul#sidebar__nav { + padding: 0; + margin: 0; + list-style: none; + display: flex; + flex-direction: row; + gap: 0.5rem; + align-items: center; + justify-content: center; + margin-bottom: 1rem; +} + +ul#sidebar__nav li { + padding: 0 1rem 0.5rem 1rem; + text-align: center; +} + +ul#sidebar__nav a { + display: block; + width: 100%; +} + +@media (min-width: 576px) { + ul#sidebar__nav { + flex-direction: column; + } + ul#sidebar__nav li { + width: 100%; + padding: 0 0 0.5rem 0; + } + ul#sidebar__nav li:has(a:not(.btn)):not(:last-child) { + border-bottom: 1px solid #e0e0e0; + } +} diff --git a/public/js/modules/event-edit.js b/public/js/modules/event-edit.js index 740c861..736547f 100644 --- a/public/js/modules/event-edit.js +++ b/public/js/modules/event-edit.js @@ -32,6 +32,7 @@ function editEventForm() { creatorEmail: window.eventData.creatorEmail, eventGroupID: window.eventData.eventGroupID, eventGroupEditToken: window.eventData.eventGroupEditToken, + publicCheckbox: window.eventData.showOnPublicList, interactionCheckbox: window.eventData.usersCanComment, joinCheckbox: window.eventData.usersCanAttend, maxAttendeesCheckbox: window.eventData.maxAttendees !== null, @@ -53,6 +54,7 @@ function editEventForm() { this.data.joinCheckbox = window.eventData.usersCanAttend; this.data.maxAttendeesCheckbox = window.eventData.maxAttendees !== null; + this.data.publicCheckbox = window.eventData.showOnPublicList; }, async submitForm() { this.submitting = true; diff --git a/public/js/modules/group-edit.js b/public/js/modules/group-edit.js index 1a2c1db..2d55346 100644 --- a/public/js/modules/group-edit.js +++ b/public/js/modules/group-edit.js @@ -27,6 +27,11 @@ function editEventGroupForm() { eventGroupURL: window.groupData.url, hostName: window.groupData.hostName, creatorEmail: window.groupData.creatorEmail, + publicCheckbox: window.groupData.showOnPublicList, + }, + init() { + // Set checkboxes + this.data.publicCheckbox = window.groupData.showOnPublicList; }, errors: [], submitting: false, diff --git a/public/js/modules/new.js b/public/js/modules/new.js index a018087..f7c3e34 100644 --- a/public/js/modules/new.js +++ b/public/js/modules/new.js @@ -87,6 +87,7 @@ function newEventForm() { creatorEmail: "", eventGroupID: "", eventGroupEditToken: "", + publicCheckbox: false, interactionCheckbox: false, joinCheckbox: false, maxAttendeesCheckbox: false, @@ -107,6 +108,7 @@ function newEventForm() { this.data.interactionCheckbox = false; this.data.joinCheckbox = false; this.data.maxAttendeesCheckbox = false; + this.data.publicCheckbox = false; }, async submitForm() { this.submitting = true; @@ -160,6 +162,11 @@ function newEventGroupForm() { eventGroupURL: "", hostName: "", creatorEmail: "", + publicCheckbox: false, + }, + init() { + // Reset checkboxes + this.data.publicCheckbox = false; }, errors: [], submitting: false, |