Repository navigation
Conversation
…phones, keep header tools on narrow screens - Full-width landing blocks left out a classic scrollbar: 100vw counts it, so the hero sat half a scrollbar to the left (heading at 5 px instead of the 12 px gutter at 390, 41 instead of 48 at 1440). The shell measures the scrollbar into --docara-scrollbar-inline-size and the block leaves it out. - Hero effect_narrow (hide by default, or show): below md (44rem) the hero text spans the block, so the background effect is not shown there; the hero keeps its pre-effect surface, the pause button is hidden and the effect is paused. - sf-header-site 1.11 moves the slotted tools element that holds the language picker into its panel when collapsed; search and reader settings were in that same element, so a narrow page with a language picker kept only the menu and the logo. The language picker is now a tools element of its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zabarov
added a commit
that referenced
this pull request
Nov 17, 2026
Owner decision q-93ec44ea27: no effect_narrow parameter. Below md the effect is always hidden under a one-column hero, as PR #71 did by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three defects seen on ui-doc (Docara 3.16.0 + SIMAI Framework pair 5.20261116.1505).
Changes
width:100vw; margin-inline:calc(50% - 50vw). 100vw counts a classic vertical scrollbar, so the hero sat half a scrollbar to the left. The shell now measures the scrollbar (innerWidth - clientWidth, again on resize and when it comes or goes) into--docara-scrollbar-inline-size, and the block leaves it out. Overlay scrollbars measure 0.effect_narrow(hideby default, orshow). Below md (44rem, 704 px) the hero is one column and its text spans the block, so withhidethe effect layer and the pause button are not shown, the hero keeps the surface it has before an effect runs, and the shell pauses the effect. From md it runs again.showkeeps the old behaviour. Catalogue definition, vocabulary, ru description, generated parameter tables and the effects/hero/error docs (ru, en) are updated.PortableSiteHeader::splitToolsnow makes the language picker a tools element of its own between the tools before and after it. Wide, the order stays search, language, settings. Collapsed, only the language moves to the panel's Settings group. The sf-language placeholder size rule follows it into.sf-site-header-tools.Measurements
These come from the ui-doc stand (Docara 3.16 + pair 1505) built with this branch overlaid,
/ru/, headless Chrome with classic scrollbars (14 px). Each run was repeated and gave the same numbers.display:none, pause button hidden/en/header at 390/ru/guide/headerWhen the window is resized from 768 to 600, the layer is hidden and the effect is paused live.
Checks
vendor/bin/pint --test: passedvendor/bin/phpunitfull suite: 1160 tests. The first run had 1 error and 2 failures:verify-static-build.php60 s timeout while a site build ran in parallel.All three tests then passed when rerun.
New or updated tests:
PortableSiteHeaderTest(language split, no split without a picker),HeroEffectTest(effect_narrowattribute, refusal, CSS and shell contract),ArticleLayoutContractTest(scrollbar-aware full-width rule and measurement).🤖 Generated with Claude Code