From 573ffe0ee43bc8facac66b689776942979277a4c Mon Sep 17 00:00:00 2001 From: Adrien Maston Date: Fri, 19 Dec 2025 15:44:36 +0100 Subject: [PATCH] Add titles to pins and search permas --- app/assets/stylesheets/native.css | 4 ++-- app/assets/stylesheets/search.css | 2 -- app/views/my/pins/index.html.erb | 10 +++++++++- app/views/searches/show.html.erb | 10 +++++++++- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/native.css b/app/assets/stylesheets/native.css index e797db955..513f3bbe4 100644 --- a/app/assets/stylesheets/native.css +++ b/app/assets/stylesheets/native.css @@ -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; } diff --git a/app/assets/stylesheets/search.css b/app/assets/stylesheets/search.css index 1b6f5f6aa..fcd4563ca 100644 --- a/app/assets/stylesheets/search.css +++ b/app/assets/stylesheets/search.css @@ -116,8 +116,6 @@ summary { /* ------------------------------------------------------------------------ */ .search-perma { - margin-block-start: var(--block-space); - .search__form > label, .search__reset { display: none; diff --git a/app/views/my/pins/index.html.erb b/app/views/my/pins/index.html.erb index c162f1e45..e98c418de 100644 --- a/app/views/my/pins/index.html.erb +++ b/app/views/my/pins/index.html.erb @@ -1,6 +1,14 @@ <% @page_title = "Pinned" %> -
+<% content_for :header do %> +
+ <%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> +
+ +

<%= @page_title %>

+<% end %> + +
<%= turbo_frame_tag "pins" do %> <%= render partial: "my/pins/pin", collection: @pins %> <% end %> diff --git a/app/views/searches/show.html.erb b/app/views/searches/show.html.erb index 1c79374fc..6ffc0facc 100644 --- a/app/views/searches/show.html.erb +++ b/app/views/searches/show.html.erb @@ -1,6 +1,14 @@ <% @page_title = params.has_key?(:q) ? "Search results for \"#{params[:q]}\"" : "Search" %> -
+<% content_for :header do %> +
+ <%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> +
+ +

<%= @page_title %>

+<% end %> + +
<%= render "form", query_terms: params[:q] %> <%= turbo_frame_tag "bar_content" do %> <% if @card %>