Skip to content

[ticket/17678] Let topic list pagination buttons grow with page number#6990

Open
ECYaz wants to merge 1 commit into
phpbb:masterfrom
ECYaz:ticket/17678
Open

[ticket/17678] Let topic list pagination buttons grow with page number#6990
ECYaz wants to merge 1 commit into
phpbb:masterfrom
ECYaz:ticket/17678

Conversation

@ECYaz

@ECYaz ECYaz commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Checklist:

  • Correct branch: master for 4.0 fixes
  • Tests pass
  • Code follows coding guidelines
  • Commit follows commit message format

Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB-17678

The small pagination buttons next to multipage topics in the topic list have a fixed width sized for a single digit, so page numbers with two or more digits sit cramped against the button borders, and three digit numbers wrap onto a second line and overflow the button.

This replaces the fixed width with a minimum width and border box sizing so the buttons keep their compact size for single digits but grow with the content, with the page number centered. Measured on prosilver: a single digit button stays 18px, a two digit button grows to 25px and a three digit button to 33px, all with even spacing around the number. The same block styles the topic list pagination in search results, the MCP forum view and the UCP topic lists, so those views are fixed as well. This follows the fix suggested in the ticket report.

The small pagination buttons next to multipage topics in the topic list
had a fixed width sized for a single digit, so page numbers with two or
more digits sat cramped against the button borders.

Replace the fixed width with a minimum width so buttons keep their
compact size for single digits but grow with the content, center the
page number and size the button consistently via border box sizing.

PHPBB-17678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant