From bffac25c57807836798f9233af142bbe1e1746d3 Mon Sep 17 00:00:00 2001 From: ShittyKopper Date: Fri, 2 Feb 2024 14:40:02 +0300 Subject: [PATCH] upd: smoothly resize reply avatars depending on container size --- packages/frontend/src/components/SkNoteSub.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/SkNoteSub.vue b/packages/frontend/src/components/SkNoteSub.vue index 01ba5138e..51812e8cf 100644 --- a/packages/frontend/src/components/SkNoteSub.vue +++ b/packages/frontend/src/components/SkNoteSub.vue @@ -446,7 +446,8 @@ if (props.detail) { } &.replyRoot { - --avatar: 36px; + /* @link https://utopia.fyi/clamp/calculator?a=450,580,26—36 */ + --avatar: clamp(26px, -8.6154px + 7.6923cqi, 36px); } }