Skip to content

Commit 3a7e9f1

Browse files
authored
Merge pull request #229 from honeylogic-io/fix-mobile-things
fix: mobile adjustments
2 parents f4419e2 + c1fcd1b commit 3a7e9f1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

django_wtf/templates/core/search.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "core/base.html" %}
22
{% block content %}
3-
<div class="mb-5 w-full flex-col content-center self-center lg:mt-5 lg:flex lg:w-7/12">
4-
<form class="form flex justify-between">
3+
<div class="mb-5 flex-col self-center w-11/12 lg:mt-5 lg:flex lg:w-7/12">
4+
<form class="form lg:flex lg:justify-between">
55
<label class="form-control">
66
<div class="label">
77
<span class="label-text">Search</span>
@@ -14,7 +14,7 @@
1414
hx-push-url="true"
1515
hx-target="#search_table"
1616
hx-trigger="keyup changed delay:0.5s"
17-
class="input input-bordered input-sm min-w-64" />
17+
class="input input-bordered min-w-64" />
1818
</label>
1919
<div class="flex gap-4">
2020
<label class="form-control">
@@ -39,6 +39,6 @@
3939
</label>
4040
</div>
4141
</form>
42-
<div id="search_table" class="table table-sm mt-7">{% include "core/search_table.html" %}</div>
42+
<div id="search_table" class="mt-7">{% include "core/search_table.html" %}</div>
4343
</div>
4444
{% endblock content %}

django_wtf/templates/core/search_table.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ <h2 class="flex justify-between card-title">
1111
<span class="text-sm">⭐ {{ object.stars }}</span>
1212
</h2>
1313
</a>
14-
<p>
14+
<div class="flex flex-wrap gap-2">
1515
{% for topic in object.topics|slice:"0:5" %}
16-
<a class="p-3 mr-1 text-xs badge badge-outline hover:brightness-125"
16+
<a class="text-xs badge badge-outline hover:brightness-125"
1717
href="{% url 'core:search' %}?q={{ topic }}">{{ topic|truncatechars:30 }}</a>
1818
{% endfor %}
19-
</p>
19+
</div>
2020
<p class="mt-2">{{ object.description }}</p>
2121
</div>
2222
</div>

0 commit comments

Comments
 (0)