99185e2d8f
* Remove the newline after .hbs copyright headers * Trying with the whitespace control char
19 lines
500 B
Handlebars
19 lines
500 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
~}}
|
|
|
|
<div
|
|
data-test-flex-masonry
|
|
class="flex-masonry {{if @withSpacing "with-spacing"}} flex-masonry-columns-{{@columns}}"
|
|
{{did-insert this.captureElement}}
|
|
{{did-insert this.reflow}}
|
|
{{did-update this.reflow @columns}}
|
|
{{window-resize this.reflow}}>
|
|
{{#each @items as |item|}}
|
|
<div data-test-flex-masonry-item class="flex-masonry-item">
|
|
{{yield item (action this.reflow)}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|