diff --git a/app/main.py b/app/main.py index 217e611..fc28f78 100644 --- a/app/main.py +++ b/app/main.py @@ -76,6 +76,7 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac # TODO(ts): # # Next: +# - allow to interact with object not in anybox (i.e. like from a lookup) # - only show 10 most recent threads in DMs # - custom CSS for disabled button (e.g. sharing on a direct post) # - prevent double accept/double follow diff --git a/app/scss/main.scss b/app/scss/main.scss index 8265e3b..a1e8cf2 100644 --- a/app/scss/main.scss +++ b/app/scss/main.scss @@ -13,6 +13,44 @@ $code-highlight-background: #f0f0f0; // Load custom theme @import "theme.scss"; +.show-more-wrapper { + .p-summary { + display: inline-block; + } + label { + margin-left: 5px; + } + .show-more-state { + display: none; + } + .show-more-state ~ .obj-content { + margin-top: 0; + } + .show-more-state:checked ~ .obj-content { + display: none; + } +} +.sensitive-attachment { + display: inline-block; + .sensitive-attachment-state { + display: none; + } + .sensitive-attachment-state:checked ~ .sensitive-attachment-box div { + display:none; + } + .sensitive-attachment-box { + position: relative; + div { + position: absolute; + width: 100%; + height: 100%; + z-index: 10; + backdrop-filter: blur(2em); + } + } +} + + blockquote { border-left: 3px solid $secondary-color; margin-left: 0; @@ -207,8 +245,9 @@ footer { } } -.show-sensitive-btn, .show-more-btn { +.show-sensitive-btn, .show-more-btn, .label-btn { @include admin-button; + padding: 10px 5px; margin: 20px 0; } @@ -272,10 +311,10 @@ nav.flexbox { } } .activity-attachment { + margin: 30px 0; img, audio, video { width: 100%; max-width: 740px; - margin: 30px 0; } } img.inline-img { diff --git a/app/templates/utils.html b/app/templates/utils.html index 300c701..f170fdb 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -123,50 +123,6 @@ {% endmacro %} -{% macro sensitive_button(permalink_id) %} -
-{% endmacro %} - -{% macro hide_sensitive_button(permalink_id) %} - -{% endmacro %} - -{% macro show_more_button(permalink_id) %} - -{% endmacro %} - -{% macro show_less_button(permalink_id) %} - -{% endmacro %} - - - {% macro admin_reply_button(ap_object_id) %}