Skip to content

Update for Flarum 2.x, use flexbox layout and add height parameters#25

Merged
dsevillamartin merged 7 commits into
2.xfrom
ds/2.x-update
May 20, 2026
Merged

Update for Flarum 2.x, use flexbox layout and add height parameters#25
dsevillamartin merged 7 commits into
2.xfrom
ds/2.x-update

Conversation

@dsevillamartin
Copy link
Copy Markdown
Member

Changes proposed in this pull request:

  • Update composer.json required versions and phpstan config for Flarum 2.x
  • Update JS for Flarum 2.x and switch to yarn
  • Switch float layout to flexbox with .content using 100% width and appearing last
  • Adjust CSS to only affect direct children to avoid potential issues
  • Improve tab IDs system to increment ids only within posts (or globally if not related to a post). ID adjusted to be tab-post<ID>-tabs<NUM>
  • Add fullheight and height BBCode attributes for [tabs] and [tab] (tab overrides parent tabs) using CSS variables to allow adjusting content height. fullheight makes it auto so it just adapts to contents, and changes depending on content length
  • Add support for tabs in FoF Pages

Reviewers should focus on:

Screenshot
image

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).

@dsevillamartin dsevillamartin requested a review from a team as a code owner April 5, 2026 21:55
@dsevillamartin dsevillamartin merged commit c1fe420 into 2.x May 20, 2026
10 checks passed
@dsevillamartin dsevillamartin deleted the ds/2.x-update branch May 20, 2026 21:04
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.

2 participants