declare search for native app

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
1 parent 2b9e5a86b6
commit 359f695eb5
9 files changed
+133 -102

No files matched your search

+8 -8
View File
@@ -7,8 +7,8 @@
<% end %>
</div>
<% end %>
<% unless turbo_native_app? %>
<div class="group/header relative flex justify-between items-center w-full mb-4">
<div class="group/header relative flex justify-between items-center w-full <%= 'mb-4' unless turbo_native_app? %>">
<% unless turbo_native_app? %>
<h1 class="text-2xl truncate md:text-3xl font-bold flex items-center flex-grow min-w-0 space-x-2 md:flex max-md:group-has-[search-input:focus-within]/header:hidden <%= 'hidden' if params[:q].present? %>">
<%= svg_icon('folder', class: 'w-9 h-9 flex-shrink-0') %>
<span class="truncate capitalize"><%= t('shared') %></span>
@@ -16,13 +16,13 @@
<span class="badge badge-outline badge-lg align-middle"><%= t('archived') %></span>
<% end %>
</h1>
<div class="flex space-x-2 max-md:has-[search-input:focus-within]:grow <%= 'max-md:grow' if params[:q].present? %>">
<% if params[:q].present? || @pagy.count.nil? || @pagy.count > 1 %>
<%= render 'shared/search_input' %>
<% end %>
</div>
<% end %>
<div class="flex space-x-2 max-md:has-[search-input:focus-within]:grow <%= 'max-md:grow' if params[:q].present? %>">
<% if params[:q].present? || @pagy.count.nil? || @pagy.count > 1 %>
<%= render 'shared/search_input' %>
<% end %>
</div>
<% end %>
</div>
<% view_archived_html = capture do %>
<% if @has_archived && params[:q].blank? %>
<div>