Sha256: dc2355f6f671da82f0f1b9f18e031e01d177d99c319e073f202d8adce7bc0b82

Contents?: true

Size: 1.1 KB

Versions: 8

Compression:

Stored size: 1.1 KB

Contents

<li id="<%= node.id %>" x-data="navNode" <% if node.hierarchy_depth == 1 %> class="py-1 border-b border-gray-300 cursor-pointer"<% end %> :class="{hidden}" x-cloak>
  <div @click="toggle" style="<%= nav_padding_style(node.hierarchy_depth) %>" class="hover:bg-gray-200 hover:bg-opacity-50">
    <div class="flex items-center cursor-pointer pr-3 py-[5px]">
      <svg class="feather w-3 h-3 mr-1 text-gray-500 flex-none">
        <use xlink:href="/lookbook-assets/feather-sprite.svg#chevron-down" x-show="open" x-cloak />
        <use xlink:href="/lookbook-assets/feather-sprite.svg#chevron-right" x-show="!open()" x-cloak />
      </svg>
      <svg class="feather h-3.5 w-3.5 mr-1.5 flex-none text-indigo-500">
        <use xlink:href="/lookbook-assets/feather-sprite.svg#<%= node.type == :preview ? 'layers' : 'folder' %>" />
      </svg>
      <div class="truncate w-full whitespace-nowrap text-left <%= "font-bold" if node.type == :preview %>" @click.stop="toggle(); navigateToFirstChild();">
        <%= node.label %>
      </div>
    </div>
  </div>
  <ul x-ref="items" x-show="open" x-cloak>
    <%= yield %>
  </ul>
</li>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lookbook-0.4.6 app/views/lookbook/nav/_node.html.erb
lookbook-0.4.5 app/views/lookbook/nav/_node.html.erb
lookbook-0.4.4 app/views/lookbook/nav/_node.html.erb
lookbook-0.4.3 app/views/lookbook/nav/_node.html.erb
lookbook-0.4.2 app/views/lookbook/nav/_node.html.erb
lookbook-0.4.1 app/views/lookbook/nav/_node.html.erb
lookbook-0.4.0.beta.2 app/views/lookbook/nav/_node.html.erb
lookbook-0.4.0.beta.1 app/views/lookbook/nav/_node.html.erb