fix: improve responsiveness of dashboard header
This commit is contained in:
parent
5a275ee883
commit
96acd710dc
2 changed files with 17 additions and 2 deletions
|
@ -164,6 +164,7 @@ h2.tabs a:not(.selected) {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #263B58;
|
color: #263B58;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
h2.tabs a:hover {
|
h2.tabs a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
@ -375,10 +376,23 @@ ul.umap-autocomplete {
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
@media all and (max-width: 640px) {
|
||||||
|
.table-header {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
.table-header form {
|
.table-header form {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
@media all and (max-width: 640px) {
|
||||||
|
.table-header form {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
.table-header form input {
|
.table-header form input {
|
||||||
border: 2px solid #263B58;
|
border: 2px solid #263B58;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
|
|
@ -18,11 +18,12 @@
|
||||||
<div class="table-header">
|
<div class="table-header">
|
||||||
<form action="{{ request.get_full_path }}" method="get">
|
<form action="{{ request.get_full_path }}" method="get">
|
||||||
<span>
|
<span>
|
||||||
<label for="q">{% blocktranslate %}Map’s title{% endblocktranslate %}</label>
|
<label class="sr-only" for="q">{% translate "Map’s title" %}</label>
|
||||||
<input id="q" name="q" type="search"
|
<input id="q" name="q" type="search"
|
||||||
|
placeholder="{% translate 'Map’s title' %}"
|
||||||
value="{{ request.GET.q|default:"" }}" />
|
value="{{ request.GET.q|default:"" }}" />
|
||||||
</span>
|
</span>
|
||||||
<input type="submit" value="{% trans "Search" %}" />
|
<input type="submit" value="{% trans "Search my maps" %}" />
|
||||||
</form>
|
</form>
|
||||||
{% if maps.object_list|length > 1 %}
|
{% if maps.object_list|length > 1 %}
|
||||||
<a href="{% url 'user_download' %}?{% spaceless %}
|
<a href="{% url 'user_download' %}?{% spaceless %}
|
||||||
|
|
Loading…
Reference in a new issue