From 8f2c209a454d8f09e5e7679a69bbf374300a9d09 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Tue, 20 Sep 2022 19:48:37 +0800 Subject: [PATCH] feat/show CW --- BDSM/static/css/style.css | 4 ++++ BDSM/templates/view.html | 3 +++ 2 files changed, 7 insertions(+) diff --git a/BDSM/static/css/style.css b/BDSM/static/css/style.css index a3ccd79..581e977 100644 --- a/BDSM/static/css/style.css +++ b/BDSM/static/css/style.css @@ -33,6 +33,10 @@ body { color: #D32F2F; } +.content { + padding-top: 10px; +} + .icon-bar span { padding-right: 10px; } diff --git a/BDSM/templates/view.html b/BDSM/templates/view.html index 8478ede..204745e 100644 --- a/BDSM/templates/view.html +++ b/BDSM/templates/view.html @@ -24,6 +24,9 @@
+ {% if toot.spoiler_text != "" %} + CW: {{toot.spoiler_text|safe}} + {% endif %} {{ toot.content|safe }}