aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-08-12 12:42:00 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-08-12 12:42:00 +0200
commit9b41c25649161880f0490cb588c11cb2b5d5c5f6 (patch)
tree84ffed348ce32148b4d95cb56b515658f8647313
parentafd910b04142f7224d792b98316d318dbfc0d360 (diff)
downloadfietsboek-9b41c25649161880f0490cb588c11cb2b5d5c5f6.tar.gz
fietsboek-9b41c25649161880f0490cb588c11cb2b5d5c5f6.tar.bz2
fietsboek-9b41c25649161880f0490cb588c11cb2b5d5c5f6.zip
fix cell width in browse view
-rw-r--r--fietsboek/static/theme.css5
-rw-r--r--fietsboek/templates/browse.jinja22
2 files changed, 6 insertions, 1 deletions
diff --git a/fietsboek/static/theme.css b/fietsboek/static/theme.css
index 3f7f74d..5ce61c6 100644
--- a/fietsboek/static/theme.css
+++ b/fietsboek/static/theme.css
@@ -114,6 +114,11 @@ strong {
padding-left: 1em;
}
+/* Ensure a consistent width of the cells in the browse view. */
+.browse-summary th, .browse-summary td {
+ width: 25%;
+}
+
.list-group.list-group-root {
padding: 0;
overflow: hidden;
diff --git a/fietsboek/templates/browse.jinja2 b/fietsboek/templates/browse.jinja2
index ebee881..6f3e0eb 100644
--- a/fietsboek/templates/browse.jinja2
+++ b/fietsboek/templates/browse.jinja2
@@ -126,7 +126,7 @@
</span>
</h5>
<div class="card-body">
- <table class="table table-hover table-sm">
+ <table class="table table-hover table-sm browse-summary">
<tbody>
<tr>
<th scope="row">{{ _("page.details.date") }}</th>