Skip to content

Commit df38a1d

Browse files
committed
Improve appearance on narrow screens
1 parent ab0268f commit df38a1d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pypi_browser/templates/_base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
type="text"
2121
name="package"
2222
placeholder="Package name"
23+
size="15"
2324
value="{{selected_package_name}}"
2425
/>
2526
<button class="btn btn-outline-success" type="submit">Go</button>

pypi_browser/templates/home.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
{% block title %}PyPI Browser{% endblock %}
55

66
{% block content %}
7-
<div class="px-4 py-4 my-4 mx-5">
7+
<div class="px-4 py-4 my-4 mx-sm-5">
88
<div class="card">
9-
<div class="card-body text-center py-5 px-5">
9+
<div class="card-body text-center py-5 px-sm-5 px-xs-2">
1010
<h4 class="mb-4">Enter a Python project name to browse its files:</h4>
1111
<form method="GET" action="{{url_for('search')}}">
1212
<div class="row px-5 mb-4">
13-
<div class="col">
13+
<div class="col-sm mb-2">
1414
<input type="text" name="package" class="form-control form-control-lg" />
1515
</div>
16-
<div class="col-auto">
16+
<div class="col-sm-auto">
1717
<button type="submit" class="btn btn-lg btn-primary">Browse Package</button>
1818
</div>
1919
</div>

pypi_browser/templates/package_file_archive_path.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h1 class="font-monospace">{{archive_path}}</h1>
4444
{{macros.tarball_warning(package_is_tarball)}}
4545

4646
<div class="row mb-6">
47-
<div class="col col-sm-9">
47+
<div class="col col-sm-9 col-12 mb-4 mb-sm-0">
4848
{% if cannot_render_error %}
4949
<div class="card">
5050
<div class="card-body text-center">

0 commit comments

Comments
 (0)