github.com/hernad/nomad@v1.6.112/ui/app/templates/components/flex-masonry.hbs (about) 1 {{! 2 Copyright (c) HashiCorp, Inc. 3 SPDX-License-Identifier: MPL-2.0 4 ~}} 5 6 <div 7 data-test-flex-masonry 8 class="flex-masonry {{if @withSpacing "with-spacing"}} flex-masonry-columns-{{@columns}}" 9 {{did-insert this.captureElement}} 10 {{did-insert this.reflow}} 11 {{did-update this.reflow @columns}} 12 {{window-resize this.reflow}}> 13 {{#each @items as |item|}} 14 <div data-test-flex-masonry-item class="flex-masonry-item"> 15 {{yield item (action this.reflow)}} 16 </div> 17 {{/each}} 18 </div>