Add titles to pins and search permas

This commit is contained in:
Adrien Maston
2025-12-19 15:44:36 +01:00
parent b49aa9cbf1
commit 573ffe0ee4
4 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -14,8 +14,8 @@
/* ------------------------------------------------------------------------ */
.header:is(
:not(:has(.header__actions)),
:not(:has(.header__actions--end)):has(.header__actions--start .btn--back:only-child)
:not(:has(.header__title, .header__actions)),
:not(:has(.header__title, .header__actions--end)):has(.header__actions--start .btn--back:only-child)
) {
display: none;
}
-2
View File
@@ -116,8 +116,6 @@ summary {
/* ------------------------------------------------------------------------ */
.search-perma {
margin-block-start: var(--block-space);
.search__form > label,
.search__reset {
display: none;
+9 -1
View File
@@ -1,6 +1,14 @@
<% @page_title = "Pinned" %>
<div class="pins-list panel panel--wide flex center borderless unpad flex-column gap-half">
<% content_for :header do %>
<div class="header__actions header__actions--start">
<%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %>
</div>
<h1 class="header__title"><%= @page_title %></h1>
<% end %>
<div class="pins-list panel panel--wide flex center borderless unpad flex-column gap-half margin-block-start">
<%= turbo_frame_tag "pins" do %>
<%= render partial: "my/pins/pin", collection: @pins %>
<% end %>
+9 -1
View File
@@ -1,6 +1,14 @@
<% @page_title = params.has_key?(:q) ? "Search results for \"#{params[:q]}\"" : "Search" %>
<div class="search-perma">
<% content_for :header do %>
<div class="header__actions header__actions--start">
<%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %>
</div>
<h1 class="header__title"><%= @page_title %></h1>
<% end %>
<div class="search-perma margin-block-start">
<%= render "form", query_terms: params[:q] %>
<%= turbo_frame_tag "bar_content" do %>
<% if @card %>