app/views/lookbook/workbench/_inspector.html.erb in lookbook-0.4.0.beta.2 vs app/views/lookbook/workbench/_inspector.html.erb in lookbook-0.4.1

- old
+ new

@@ -1,10 +1,11 @@ <div id="inspector" class="bg-white w-full overflow-hidden flex flex-col" x-data="inspector" x-show="$screen('md')"> <div class="px-4 border-b border-gray-200 flex items-center flex-none select-none"> <nav class="-mb-px flex space-x-8 cursor-auto"> <% panes.each do |key, props| %> <a + id="inspector-tab-<%= key %>" href="#<%= key %>" class="whitespace-nowrap py-2 px-1 border-b-2 cursor-pointer <%= "!text-gray-300" if props[:disabled] %>" :class="{ 'border-indigo-400': active('<%= key %>'), 'border-transparent text-gray-500 hover:text-gray-700': !active('<%= key %>') @@ -21,10 +22,10 @@ <% panes.each do |key, props| %> <div class="flex flex-col h-full relative" x-show="active('<%= key %>')" x-cloak> <% if props[:clipboard].present? %> <%= render "shared/clipboard" do %><%= h props[:clipboard].strip %><% end %> <% end %> - <div class="flex flex-col h-full overflow-auto"> + <div id="inspector-content-<%= key %>" class="flex flex-col h-full overflow-auto"> <%= render "workbench/inspector/#{props[:template]}", key: key, **props %> </div> </div> <% end %> </div>