open-nomad/ui/app/templates/components/flex-masonry.hbs
Phil Renaud 99185e2d8f
[ui, compliance] Remove the newline after .hbs copyright headers (#16861)
* Remove the newline after .hbs copyright headers

* Trying with the whitespace control char
2023-04-14 13:08:13 -04:00

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>