Fix position of copy button in AI Tools.

This commit is contained in:
John Preston
2026-03-27 22:22:28 +07:00
parent 73e45b9cc7
commit 4935ceda5b
@@ -841,7 +841,7 @@ int ComposeAiPreviewCard::resizeGetHeight(int newWidth) {
const auto lineHeight = _resultBody->st().style.lineHeight
? _resultBody->st().style.lineHeight
: _resultBody->st().style.font->height;
if (_copy->isVisible()) {
if (!_copy->isHidden()) {
_resultBody->setSkipBlock(
_copy->width(),
lineHeight);
@@ -855,7 +855,7 @@ int ComposeAiPreviewCard::resizeGetHeight(int newWidth) {
contentWidth,
_resultBody->height(),
newWidth);
if (_copy->isVisible()) {
if (!_copy->isHidden()) {
_copy->moveToRight(
padding.right(),
y + _resultBody->height() - lineHeight,