Set homepage row size to 4

This commit is contained in:
rubenwardy 2023-08-25 21:31:19 +01:00
parent 98c1cbc769
commit 9eb03c6a57
4 changed files with 5 additions and 5 deletions

@ -26,7 +26,7 @@ from sqlalchemy.orm import joinedload, subqueryload
from sqlalchemy.sql.expression import func
PKGS_PER_ROW = 5
PKGS_PER_ROW = 4
@bp.route("/gamejam/")

@ -269,9 +269,9 @@ pre {
grid-template-columns: repeat(2, 1fr);
}
.grid-250px {
.grid-300px {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.gap-2 {

@ -16,7 +16,7 @@
{%- endif %}
<link rel="stylesheet" type="text/css" href="/static/libs/bootstrap.min.css?v=3">
<link rel="stylesheet" type="text/css" href="/static/custom.css?v=44">
<link rel="stylesheet" type="text/css" href="/static/custom.css?v=45">
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="ContentDB" />
{% if noindex -%}

@ -38,7 +38,7 @@
{% endmacro %}
{% macro render_pkggrid(packages, show_author=True) -%}
<ul class="grid-250px gap-2 p-0">
<ul class="grid-300px gap-2 p-0">
{% for p in packages %}
{{ render_pkgtile(p, show_author) }}
{% else %}