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:
parent
4ee89e2336
commit
2fdd780a05
1 changed files with 6 additions and 6 deletions
|
|
@ -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">
|
||||
{{ content|safe }}
|
||||
<div id="data-content" class="data-page-content">
|
||||
{{ content|safe }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="detail-panel"></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue