Fixed bottom fade effect for input message fields in compose controls.

This commit is contained in:
23rd 2024-03-29 03:15:13 +03:00 committed by John Preston
parent 3311a50750
commit 0b22e5928c
1 changed files with 5 additions and 1 deletions

View File

@ -505,7 +505,11 @@ void InitMessageFieldFade(
}, topFade->lifetime());
topFade->show();
bottomFade->show();
bottomFade->showOn(
field->scrollTop().value(
) | rpl::map([field, descent = field->st().font->descent](int scroll) {
return (scroll + descent) < field->scrollTopMax();
}) | rpl::distinct_until_changed());
}
InlineBotQuery ParseInlineBotQuery(