Skip to content

Commit

Permalink
fix: Fix next, previous page buttons overflowing on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
devadathanmb committed Jan 18, 2024
1 parent 6cc649f commit 7ad3148
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions src/wizards/announcementWizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,8 @@ async function showAnnouncements(ctx: CustomContext) {
const announcementButtons = announcements.map(({ id, subject }) =>
Markup.button.callback(subject, `announcement_${id}`)
);
const nextPageButton = Markup.button.callback("Next Page ⏭️", "next_page");
const prevPageButton = Markup.button.callback(
"Previous Page ⏮️",
"prev_page"
);
const nextPageButton = Markup.button.callback("Next ⏭️", "next_page");
const prevPageButton = Markup.button.callback("Prev ⏮️", "prev_page");
const pageInfoButton = Markup.button.callback(
`Page : ${ctx.scene.session.pageNumber + 1}`,
"page"
Expand Down
7 changes: 2 additions & 5 deletions src/wizards/calendarWizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,8 @@ async function showAcademicCalendars(ctx: CustomContext) {
const calendarButtons = calendars.map(({ id, title }) =>
Markup.button.callback(title, `calendar_${id}`)
);
const nextPageButton = Markup.button.callback("Next Page ⏭️", "next_page");
const prevPageButton = Markup.button.callback(
"Previous Page ⏮️",
"prev_page"
);
const nextPageButton = Markup.button.callback("Next ⏭️", "next_page");
const prevPageButton = Markup.button.callback("Prev ⏮️", "prev_page");
const pageInfoButton = Markup.button.callback(
`Page : ${ctx.scene.session.pageNumber + 1}`,
"page"
Expand Down
7 changes: 2 additions & 5 deletions src/wizards/timeTableWizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ async function showTimetables(ctx: CustomContext) {
const timetableButtons = timetables.map(({ id, title }) =>
Markup.button.callback(title, `timetable_${id}`)
);
const nextPageButton = Markup.button.callback("Next Page ⏭️", "next_page");
const prevPageButton = Markup.button.callback(
"Previous Page ⏮️",
"prev_page"
);
const nextPageButton = Markup.button.callback("Next ⏭️", "next_page");
const prevPageButton = Markup.button.callback("Prev ⏮️", "prev_page");
const pageButton = Markup.button.callback(
`Page : ${ctx.scene.session.pageNumber + 1}`,
"page"
Expand Down

0 comments on commit 7ad3148

Please sign in to comment.