Final solution to the saltus question (#190)

See https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4783702#context

Co-authored-by: Chuck <dude@bussy.com>
Reviewed-on: rDrama/rDrama#190
Co-authored-by: top <top@noreply.fsdfsd.net>
Co-committed-by: top <top@noreply.fsdfsd.net>
master
top 2023-08-12 11:04:31 +00:00 committed by Aevann
parent c2701b2aeb
commit ef77784d7a
2 changed files with 20 additions and 6 deletions

View File

@ -213,12 +213,7 @@
/* do not remove - fixes hand, talking, marsey-love components /* do not remove - fixes hand, talking, marsey-love components
from breaking out of the comment box from breaking out of the comment box
*/ */
.comment-text a > img { .comment-text a > img, img[data-user-submitted], .preview > img {
position: relative !important;
max-height: 150px !important;
margin: 0 !important;
}
.preview > img {
position: relative !important; position: relative !important;
max-height: 150px !important; max-height: 150px !important;
margin: 0 !important; margin: 0 !important;
@ -5559,6 +5554,15 @@ span > img[src$="/i/hand.webp"]+img[src$="/i/talking.webp"]~img {
text-align: center; text-align: center;
object-fit: contain; object-fit: contain;
} }
span[bounce] {
animation: pat-pfp-anim 0.6s infinite;
transform-origin: bottom center;
text-align: center;
object-fit: contain;
display: inline-block;
}
span > img[src$="/i/talking.webp"]~img { span > img[src$="/i/talking.webp"]~img {
margin-top: 22%; margin-top: 22%;
} }
@ -6917,6 +6921,13 @@ div.markdown {
overflow: auto; overflow: auto;
} }
.popover-bio {
overflow: scroll;
position: relative;
display: inline-block;
height: 100%;
}
.popover-badges-div { .popover-badges-div {
max-height: 10vh !important; max-height: 10vh !important;
overflow: auto; overflow: auto;

View File

@ -78,6 +78,7 @@ def allowed_attributes(tag, name, value):
if name in {'g','b','glow','party'} and not value: return True if name in {'g','b','glow','party'} and not value: return True
if name in {'alt','title'}: return True if name in {'alt','title'}: return True
if name == 'class' and value == 'img': return True if name == 'class' and value == 'img': return True
if name == 'data-user-submitted' and not value: return True
if tag == 'lite-youtube': if tag == 'lite-youtube':
if name == 'params' and value.startswith('autoplay=1&modestbranding=1'): return True if name == 'params' and value.startswith('autoplay=1&modestbranding=1'): return True
@ -101,6 +102,7 @@ def allowed_attributes(tag, name, value):
if name == 'title': return True if name == 'title': return True
if name == 'alt': return True if name == 'alt': return True
if name == 'cide' and not value: return True if name == 'cide' and not value: return True
if name == 'bounce' and not value: return True
if tag == 'table': if tag == 'table':
if name == 'class' and value == 'table': return True if name == 'class' and value == 'table': return True
@ -520,6 +522,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
a.append(tag) a.append(tag)
tag["data-src"] = tag["data-src"] tag["data-src"] = tag["data-src"]
tag["data-user-submitted"] = ""
sanitized = str(soup).replace('<html><body>','').replace('</body></html>','').replace('/>','>') sanitized = str(soup).replace('<html><body>','').replace('</body></html>','').replace('/>','>')