From 8ae68c8198ee26dd2167e3b331d52f0fd3300574 Mon Sep 17 00:00:00 2001 From: Mikhail Ivanov Date: Wed, 4 Dec 2024 16:59:41 +0100 Subject: [PATCH] small style fixes --- feed/static/feed/styles/main.css | 6 ++++++ feed/templates/dialogs/feed/new.html | 2 +- feed/templates/forms/feed_new.html | 2 +- feed/views/api/feed.py | 1 - 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/feed/static/feed/styles/main.css b/feed/static/feed/styles/main.css index 2117c81..0e55588 100644 --- a/feed/static/feed/styles/main.css +++ b/feed/static/feed/styles/main.css @@ -646,6 +646,12 @@ a:hover { gap: calc(var(--grid-step) * 0.5); } +.feed-parsing-result { + &:empty { + display: none; + } +} + .feed-description__text { font-size: 0.833rem; line-height: 1.25rem; diff --git a/feed/templates/dialogs/feed/new.html b/feed/templates/dialogs/feed/new.html index 6d3afbe..c11e61d 100644 --- a/feed/templates/dialogs/feed/new.html +++ b/feed/templates/dialogs/feed/new.html @@ -2,5 +2,5 @@ {% block body %} {% include 'forms/feed_new.html' %} -
+
{% endblock %} \ No newline at end of file diff --git a/feed/templates/forms/feed_new.html b/feed/templates/forms/feed_new.html index 3b57b81..5d67aab 100644 --- a/feed/templates/forms/feed_new.html +++ b/feed/templates/forms/feed_new.html @@ -13,6 +13,6 @@ -
+
{% block result %}{% endblock %}
\ No newline at end of file diff --git a/feed/views/api/feed.py b/feed/views/api/feed.py index b4c6e54..e6f99ef 100644 --- a/feed/views/api/feed.py +++ b/feed/views/api/feed.py @@ -130,7 +130,6 @@ def get_feed_url_name(self): return "api_feed_feed_list" def get_context_data(self, **kwargs): - print("triggered feed item list view") context = super().get_context_data(**kwargs) context["feed_id"] = self.kwargs.get("feed_id") context["feed"] = Feed.objects.get(id=context["feed_id"])