change domen
This commit is contained in:
@@ -104,24 +104,20 @@ func (s *Creatives) renderCreatives(b *bot.Bot, mode bot.RenderMode, jwt string)
|
||||
buttons = append(buttons, row)
|
||||
}
|
||||
|
||||
// Ряд: Пагинация + Добавить
|
||||
// Ряд: Пагинация + Добавить (динамическая ширина)
|
||||
var navRow []echotron.InlineKeyboardButton
|
||||
|
||||
// Левая стрелка (или пустая кнопка)
|
||||
// Левая стрелка (только если есть предыдущая страница)
|
||||
if s.CurrentPage > 0 {
|
||||
navRow = append(navRow, bot.Button("←", "prev"))
|
||||
} else {
|
||||
navRow = append(navRow, bot.Button(" ", "empty"))
|
||||
}
|
||||
|
||||
// Кнопка "Добавить креатив" всегда в центре
|
||||
navRow = append(navRow, bot.Button("+ Добавить", "add_creative"))
|
||||
|
||||
// Правая стрелка (или пустая кнопка)
|
||||
// Правая стрелка (только если есть следующая страница)
|
||||
if s.CurrentPage+1 < page.Pages {
|
||||
navRow = append(navRow, bot.Button("→", "next"))
|
||||
} else {
|
||||
navRow = append(navRow, bot.Button(" ", "empty"))
|
||||
}
|
||||
|
||||
buttons = append(buttons, navRow)
|
||||
|
||||
Reference in New Issue
Block a user