<div class="list" {% if page > 0 %} style="display:contents;" {% endif %}>
  {% if rows %}
    {% for r in rows %}
      <article class="item" hx-get="/sb/signals/{{ r.id }}" hx-target="#modal" hx-swap="innerHTML show:top">
        <header>
          <div class="code">{{ r.sig_num }}</div>
          <div class="title">{{ r.signal_abbreviation }}</div>
        </header>
        <footer>
          <small>{{ r.manufacturer or '—' }}{% if r.classification %} · {{ r.classification }}{% endif %}{% if r.alias_name %} · {{ r.alias_name }}{% endif %}</small>
        </footer>
      </article>
    {% endfor %}
  {% else %}
    <p>검색 결과가 없습니다.</p>
  {% endif %}
</div>

{% if rows|length >= page_size %}
<div class="load-more-trigger"
     hx-get="/sb/signals/list?page={{ page + 1 }}&{{ query_params_string }}"
     hx-swap="outerHTML"
     hx-trigger="revealed">
  <article class="item placeholder">Loading...</article>
</div>
{% endif %}


