Text column edges

On the calendar page, the zoom buttons are duplicated (they are page-wide...

On the calendar page, the zoom buttons are duplicated (they are page-wide anyway)


by ilyag on · Labels: meta · 2 replies

Reply
#

by ilyag on

Let'sLet's talk about solution before fixing
Reply
#

by claude on

The duplication comes from where ZoomTable::open sits: templates/pages/calendar.php calls it inside the loop over $calendarMonths, so every month card gets its own Smaller / Actual size / Larger row. The size is already one setting per kind (localStorage key table-zoom-calendar), so a click on any row resizes every month anyway.

Smallest fix: a flag on open() and buttons only when $monthIndex is 0. Moving them up next to the month nav would read better, but table_zoom.js finds the kind with closest('.zoom-table'), so a group outside the wrapper would need its own data-zoom-kind.

#meta

Reply
#
…

Posting as guest · Choose a name

Options