Style view toggler

This commit is contained in:
Stanislav Romanov 2022-10-17 12:38:53 +03:00
parent c367c1e523
commit 4b2c82a722

View file

@ -60,13 +60,13 @@
</div> --}}
{{#if (gt @model.data.estimatedTotalHits 0)}}
<div class='mb-4'>
<div class='flex items-center -space-x-px mb-4' role='group'>
{{#each-in this.views as |key icon|}}
<Button
@icon={{icon}}
class='w-auto'
@onClick={{set this 'dataView'}}
@value={{key}}
class='w-auto rounded-none first:rounded-l last:rounded-r {{if (eq this.dataView key) "text-primary"}}'
/>
{{/each-in}}
</div>