From 4c1572f5fa10aee510912649a4c9d682ba41a503 Mon Sep 17 00:00:00 2001 From: metalune Date: Sun, 18 Jul 2021 00:52:53 +0200 Subject: [PATCH] Center everything --- static/style.css | 1 + templates/accounts/video_channels.html | 3 ++- templates/base.html | 3 ++- templates/instance/local.html | 2 ++ templates/instance/most-liked.html | 2 ++ templates/instance/recently-added.html | 2 ++ templates/instance/trending.html | 2 ++ templates/search_results.html | 2 ++ templates/simpleer_search_results.html | 9 ++++++++- templates/video_channels/video_playlists.html | 2 ++ templates/video_channels/videos.html | 2 ++ 11 files changed, 27 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index db80e05..9c61d76 100644 --- a/static/style.css +++ b/static/style.css @@ -10,6 +10,7 @@ body { #wrap { display: flex; flex-wrap: wrap; + justify-content: space-evenly; } .result-wrapper { diff --git a/templates/accounts/video_channels.html b/templates/accounts/video_channels.html index 33f37c3..d4b95e1 100644 --- a/templates/accounts/video_channels.html +++ b/templates/accounts/video_channels.html @@ -8,7 +8,7 @@

- +
{% for channel in video_channels.data %}
@@ -24,5 +24,6 @@
{% endfor %}
+
{% endblock %} diff --git a/templates/base.html b/templates/base.html index 5aafb37..e0c4525 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,8 +9,8 @@ {% endblock %} - +

{{ instance_name }}

@@ -61,5 +61,6 @@ {% endif %} {% endif %} {% endif %} +
diff --git a/templates/instance/local.html b/templates/instance/local.html index 46838a1..a168c95 100644 --- a/templates/instance/local.html +++ b/templates/instance/local.html @@ -4,6 +4,7 @@ {% block content %} +
{% for video in videos.data %}
@@ -25,5 +26,6 @@
{% endfor %}
+
{% endblock %} diff --git a/templates/instance/most-liked.html b/templates/instance/most-liked.html index 01bf0fd..86b1683 100644 --- a/templates/instance/most-liked.html +++ b/templates/instance/most-liked.html @@ -4,6 +4,7 @@ {% block content %} +
{% for video in videos.data %}
@@ -25,5 +26,6 @@
{% endfor %}
+
{% endblock %} diff --git a/templates/instance/recently-added.html b/templates/instance/recently-added.html index 8838f2a..209d04b 100644 --- a/templates/instance/recently-added.html +++ b/templates/instance/recently-added.html @@ -4,6 +4,7 @@ {% block content %} +
{% for video in videos.data %}
@@ -26,5 +27,6 @@ {% endfor %}
+
{% endblock %} diff --git a/templates/instance/trending.html b/templates/instance/trending.html index 195257d..1b37b76 100644 --- a/templates/instance/trending.html +++ b/templates/instance/trending.html @@ -4,6 +4,7 @@ {% block content %} +
{% for video in videos.data %}
@@ -25,5 +26,6 @@
{% endfor %}
+
{% endblock %} diff --git a/templates/search_results.html b/templates/search_results.html index 1041822..1b4c02a 100644 --- a/templates/search_results.html +++ b/templates/search_results.html @@ -5,6 +5,7 @@ {% block content %}

{{ results.total }} results

+
{% for result in results.data %}
@@ -28,5 +29,6 @@
{% endfor %}
+
{% endblock %} diff --git a/templates/simpleer_search_results.html b/templates/simpleer_search_results.html index 0b03ee8..b0da4bb 100644 --- a/templates/simpleer_search_results.html +++ b/templates/simpleer_search_results.html @@ -6,6 +6,7 @@ +

SimpleerTube

@@ -31,10 +32,14 @@ {{ results.total }} Results +
{% for result in results.data %}
- + + + +
{{ result.name }}
@@ -47,6 +52,7 @@
{% endfor %}
+
{% if pages_total > 1 %} {% if page > 1 %} @@ -59,5 +65,6 @@ Next {% endif %} {% endif %} +
diff --git a/templates/video_channels/video_playlists.html b/templates/video_channels/video_playlists.html index fb304f7..aae9b7e 100644 --- a/templates/video_channels/video_playlists.html +++ b/templates/video_channels/video_playlists.html @@ -8,6 +8,7 @@

+
{% for playlist in video_playlists.data %}
@@ -21,5 +22,6 @@
{% endfor %}
+
{% endblock %} diff --git a/templates/video_channels/videos.html b/templates/video_channels/videos.html index fc0c31e..2447ccc 100644 --- a/templates/video_channels/videos.html +++ b/templates/video_channels/videos.html @@ -8,6 +8,7 @@

+
{% for video in videos.data %}
@@ -24,5 +25,6 @@
{% endfor %}
+
{% endblock %}