Add titles to pins and search permas
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -116,8 +116,6 @@ summary {
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
.search-perma {
|
||||
margin-block-start: var(--block-space);
|
||||
|
||||
.search__form > label,
|
||||
.search__reset {
|
||||
display: none;
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user