Skip to content

Commit

Permalink
Add a dummy scopes toolbar to the ui/table component
Browse files Browse the repository at this point in the history
This sets up the container and usage for the scopes/saved-searches
features without delving into it right away.

Having this bar will avoid the page from "jumping" when we'll show the
batch actions toolbar.
  • Loading branch information
elia committed Jul 13, 2023
1 parent b4799eb commit edef797
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"
data-controller="<%= stimulus_id %>"
>
<% toolbar_classes = "h-14 p-2 bg-white border-b border-gray-100 justify-start items-center gap-2 flex" %>

<div class="<%= toolbar_classes %>">
<%= render component('ui/tab').new(text: "All", active: true, scheme: :secondary, href: "") %>
</div>

<table class=" table-auto w-full border-collapse ">
<colgroup>
<% @columns.each do |column| %>
Expand Down

0 comments on commit edef797

Please sign in to comment.