From dda3b3dbecfc240cfedbb092fe6f57b8350aa3ff Mon Sep 17 00:00:00 2001 From: metalune Date: Wed, 24 Mar 2021 20:27:22 +0100 Subject: [PATCH] Add style for Tags --- static/style.css | 6 ++++++ templates/video.html | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index 7c092b1..32bf8dd 100644 --- a/static/style.css +++ b/static/style.css @@ -4,3 +4,9 @@ body { padding-left: 5px; padding-right: 5px; } + +.tag { + background-color: lightgrey; + padding: 3px 7px; + display: inline; +} diff --git a/templates/video.html b/templates/video.html index 5f14dca..97b8350 100644 --- a/templates/video.html +++ b/templates/video.html @@ -62,9 +62,9 @@ Views: {{ video.views }} Likes: {{ video.likes }} Dislikes: {{ Tags - {% for tag in video.tags %} - {{ tag }} - {% endfor %} + {% for tag in video.tags %} + {{ tag }} + {% endfor %}