Skip to content

Commit

Permalink
Merge pull request #1672 from ikedas/arc_calendar
Browse files Browse the repository at this point in the history
Lower the list of months in the calendar and allow it scrolling
  • Loading branch information
racke authored Dec 7, 2023
2 parents 6804661 + 54e71d5 commit 872d1ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions default/web_tt2/css.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,11 @@ span.divider{
}

/* Calendar in mhonarc_rc.tt2 */
#ArcCalendar {
overflow-y: auto;
max-height: 9em;
}

ul.calendar {
margin-left:0!important;
padding-left:0!important;
Expand Down
12 changes: 12 additions & 0 deletions www/js/sympa.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,15 @@ $(function(){
});
});

/* Align the scrollable calendar. */
$(function() {
$('.calendarLinksCurrentPage').each(function(){
var curmonth = $(this);
var container = $('#ArcCalendar');

container.scrollTop(
curmonth.position().top - container.position().top -
(container.height() - curmonth.height()) / 2);
});
});

0 comments on commit 872d1ed

Please sign in to comment.