Add 8px top margin to document-tabs in both views

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pull/599/head
Marcelo Paiva 3 weeks ago
parent 0828065b80
commit e5e7afb78e

@ -96,7 +96,7 @@
n_pages > 0 && pages_text.size >= n_pages n_pages > 0 && pages_text.size >= n_pages
end %> end %>
<% if has_full_text %> <% if has_full_text %>
<document-tabs class="flex flex-col w-full min-h-0"> <document-tabs class="flex flex-col w-full min-h-0" style="margin-top: 8px">
<div role="tablist" aria-label="<%= t('document_view_options') %>" <div role="tablist" aria-label="<%= t('document_view_options') %>"
class="flex border-b border-base-300 px-0.5 flex-none bg-base-100"> class="flex border-b border-base-300 px-0.5 flex-none bg-base-100">
<button role="tab" id="tab-pdf" aria-selected="true" <button role="tab" id="tab-pdf" aria-selected="true"

@ -65,7 +65,7 @@
n_pages > 0 && pages_text.size >= n_pages n_pages > 0 && pages_text.size >= n_pages
end %> end %>
<% if has_full_text %> <% if has_full_text %>
<document-tabs class="block" style="margin-top: 4rem"> <document-tabs class="block" style="margin-top: calc(4rem + 8px)">
<div role="tablist" aria-label="<%= t('document_view_options') %>" <div role="tablist" aria-label="<%= t('document_view_options') %>"
class="flex border-b border-base-300 mb-2 sticky top-12 min-[1230px]:top-0 z-40 bg-base-100"> class="flex border-b border-base-300 mb-2 sticky top-12 min-[1230px]:top-0 z-40 bg-base-100">
<button role="tab" id="tab-pdf" aria-selected="true" <button role="tab" id="tab-pdf" aria-selected="true"

Loading…
Cancel
Save