{% if toolbar.should_render() %} {% set items=toolbar.get_items() %}
{# Details panel. Visibility is driven entirely by data attributes on the wrapper (no JS class toggling): shown when data-expanded=true, but force-hidden on desktop while the bar is a collapsed pill. #} {# Bar layout: - Mobile (always): floating pill at the chosen position - Desktop collapsed pill: floating pill at the chosen position - Desktop uncollapsed (group-data-[collapsed=false]): full-width bottom bar #} {# The pill's three positions are pure CSS translateX off a fixed left-0 anchor, so resize needs no JS. data-animate (set by toolbar.js only for a snap or cycle) gates the slide transition; drag/dock stay instant. #}
{# Version: tappable toggle on mobile / desktop pill #} {# Version: selectable, non-interactive text on the desktop full bar #} {# Filler that expands the panel - desktop full bar only #} {# Items list: - desktop full bar: always shown - mobile: shown when data-items-open=true (toggled by the version button) - desktop pill: hidden #}
{% endif %}