Sha256: d5b2deebd263a5dc52e37eacaf9b8b37a4608093cbacdd52efdb2caf2d2875db

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 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) %>">
    <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 whitespace-nowrap text-left <%= "font-bold" if node.type == :preview %>">
        <%= node.label %>
      </div>
    </div>
  </div>
  <ul x-ref="items" x-show="open" x-cloak>
    <%= yield %>
  </ul>
</li>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lookbook-0.3.0.beta.1 app/views/lookbook/nav/_node.html.erb
lookbook-0.3.0.beta.0 app/views/lookbook/nav/_node.html.erb