Added scroll bar inset below top bar suggestion pill.

This commit is contained in:
23rd
2026-05-17 12:45:36 +03:00
parent 1c4a8bfdc8
commit e1c8fb084e
2 changed files with 3 additions and 1 deletions
@@ -1146,6 +1146,7 @@ void Widget::setupTopBarSuggestions() {
_topBarSuggestionPlaceholder->width(),
h);
}
_scroll->setBarTopInset(h);
_topBarSuggestionHeightChanged.fire_copy(h);
}, _topBarSuggestion->entity()->lifetime());
const auto pinToScroll = [=] {
@@ -1162,6 +1163,7 @@ void Widget::setupTopBarSuggestions() {
} else {
_topBarSuggestionPlaceholder = nullptr;
_topBarSuggestion = nullptr;
_scroll->setBarTopInset(0);
_topBarSuggestionHeightChanged.fire(0);
}
}, lifetime());