правки

This commit is contained in:
Artem Tsyrulnikov
2026-02-01 17:57:46 +03:00
parent a92f33c22f
commit 4e35c73a66
15 changed files with 1573 additions and 231 deletions

View File

@@ -86,7 +86,7 @@ func (s *Placements) Exit() {}
// PlacementsList - экран со списком размещений
const placementsPerPage = 6
const placementsPerRow = 2
const placementsPerRow = 1
type PlacementsList struct {
ProjectID string
@@ -152,9 +152,9 @@ func (s *PlacementsList) render(b *bot.Bot, mode bot.RenderMode) {
}
// Текст кнопки: #N • Канал (с пробелом и разделителем)
buttonText := fmt.Sprintf("#%d • %s", globalNum, channelName)
buttonText := fmt.Sprintf("%d • %s", globalNum, channelName)
if dateStr != "" {
buttonText += fmt.Sprintf("\n%s", dateStr)
buttonText += fmt.Sprintf(" %s", dateStr)
}
buttons = append(buttons, echotron.InlineKeyboardButton{