Skip to content

Bracket header options do not get dynamically updated based on column width #7003

@ElectricalBoy

Description

@ElectricalBoy

Describe the bug

-- Don't emit brkts-header-option if there is only one option. This is
-- because the JavaScript module for changing headers supports only text,
-- and will eat up tags like <abbr>.
if #options > 1 then
for _, option in ipairs(options) do
headerNode:node(
mw.html.create('div'):addClass('brkts-header-option'):wikitext(option)
)
end
end

.brkts-header-option {
display: none;
}

Shorter .brkts-header-options are never displayed

To Reproduce

  1. Open leagueoflegends:Mid-Season Invitational/2025/Bracket Stage
  2. Observe bracket headers with inner text overflowing

Expected behavior

Bracket header uses shorter options instead of overflowing

Screenshots

Screenshot_20260126_180050_Chrome.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions