From 3ee85d524b9a57eeab7528274c75ded29f5da857 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 17 Oct 2022 10:51:16 +0200 Subject: [PATCH] limit height of bio in popover to 50vh --- files/assets/css/main.css | 11 +++++++++++ files/templates/popover.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index ee6423e91..cd4a5bfcf 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -6306,3 +6306,14 @@ div.markdown { .d-block { display: block !important; } + +.popover-bio-div { + max-height: 50vh !important; + overflow: auto; + scrollbar-width: none; + -ms-overflow-style: none; +} + +.popover-bio-div::-webkit-scrollbar { + background: transparent; +} diff --git a/files/templates/popover.html b/files/templates/popover.html index 3aaff8cb8..640b365ca 100644 --- a/files/templates/popover.html +++ b/files/templates/popover.html @@ -12,7 +12,7 @@ {% if FEATURES['USERS_PROFILE_BODYTEXT'] -%} -
+
{%- endif %}