style(data): improve data page layout and spacing

- Wrap tab bar, search, and table in gap-4 container for tighter spacing
- Change search placeholder from "Search..." to "Filter..."
- Remove border/padding wrapper around tab bar and search
This commit is contained in:
Jon Seager 2026-02-07 20:59:08 +00:00
parent 4ee89e2336
commit 2fdd780a05
No known key found for this signature in database

View file

@ -5,23 +5,23 @@
<p class="max-w-2xl text-sm text-text-secondary">Browse all your coffee data.</p>
</header>
<div class="rounded-lg border bg-surface">
<div class="flex flex-col gap-4">
{% include "partials/tab_bar.html" %}
<!-- Search -->
<div class="border-t px-3 py-2" data-signals:_data-search="'{{ search_value }}'">
<div data-signals:_data-search="'{{ search_value }}'">
<input
type="search"
data-bind:_data-search
placeholder="Search..."
placeholder="Filter..."
class="input-field w-full text-sm"
data-on:input__debounce.300ms="history.pushState(null, '', '/data?type=' + $_activeTab + '&q=' + encodeURIComponent($_dataSearch)); @get('/data?type=' + $_activeTab + '&q=' + encodeURIComponent($_dataSearch), {responseOverrides: {selector: '#data-content', mode: 'inner'}})"
{% if !search_value.is_empty() %}autofocus{% endif %}
/>
</div>
</div>
<div id="data-content" class="data-page-content">
<div id="data-content" class="data-page-content">
{{ content|safe }}
</div>
</div>
<div id="detail-panel"></div>