From 10813613e5638b7803e0748071a98df2fd4bcd0c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 19 Oct 2024 01:55:00 -0400 Subject: [PATCH 1/3] show more button for item description --- catalog/templates/item_base.html | 34 ++++++++++++++++++++++++-------- common/static/scss/_common.scss | 33 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 8 deletions(-) diff --git a/catalog/templates/item_base.html b/catalog/templates/item_base.html index 8a4d4655..01700307 100644 --- a/catalog/templates/item_base.html +++ b/catalog/templates/item_base.html @@ -223,17 +223,35 @@

{% endif %} +
{% trans 'overview' %}
- {% if item.display_description %} -

{{ item.display_description | linebreaksbr }}

- {% elif item.parent_item.display_description %} -

{{ item.parent_item.display_description | linebreaksbr }}

- {% else %} -

{% trans 'nothing so far.' %}

- {% endif %} - {% block content %}{% endblock %} +
+ + {% if item.display_description %} +

{{ item.display_description | linebreaksbr }}

+ {% elif item.parent_item.display_description %} +

{{ item.parent_item.display_description | linebreaksbr }}

+ {% else %} +

{% trans 'nothing so far.' %}

+ {% endif %} + +
+ + {% block content %} + {% endblock %}
diff --git a/common/static/scss/_common.scss b/common/static/scss/_common.scss index c512a238..19d0c562 100644 --- a/common/static/scss/_common.scss +++ b/common/static/scss/_common.scss @@ -14,6 +14,39 @@ -webkit-box-orient: vertical; } +.tldr-box { + input { + opacity: 0; + position: absolute; + pointer-events: none; + } + + p { + display: -webkit-box; + -webkit-line-clamp: 10; + -webkit-box-orient: vertical; + overflow: hidden; + } + + input:focus ~ label { + outline: -webkit-focus-ring-color auto 5px; + } + + input:checked + p { + -webkit-line-clamp: unset; + } + + input:checked ~ label, + p:not(.truncated) ~ label{ + display: none; + } + + label { + padding: 1px 4px + } +} + + .longlist { max-height: 60vh; overflow-y: scroll; From b0a286ae873271dbe9425d5915a1148665c470a2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 19 Oct 2024 02:25:32 -0400 Subject: [PATCH 2/3] surpress log from podcastparser --- boofilsic/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boofilsic/settings.py b/boofilsic/settings.py index 1047b79b..e645fb37 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -616,8 +616,11 @@ def _init_language_settings(preferred_lanugages_env): if SENTRY_DSN: import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration + from sentry_sdk.integrations.logging import ignore_logger from sentry_sdk.integrations.loguru import LoguruIntegration + ignore_logger("podcastparser") + sentry_env = sys.argv[0].split("/")[-1] if len(sys.argv) > 1 and sentry_env in ("manage.py", "django-admin"): sentry_env = sys.argv[1] From 34bb5b835119fce65ee5bdc2d1a978b2d982bd00 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 19 Oct 2024 02:33:28 -0400 Subject: [PATCH 3/3] sync takahe --- neodb-takahe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neodb-takahe b/neodb-takahe index f606441c..d57859f5 160000 --- a/neodb-takahe +++ b/neodb-takahe @@ -1 +1 @@ -Subproject commit f606441c73db2567b440dbf776d64973218ba539 +Subproject commit d57859f5f3c297fc5794ff2f98727504689fbf35