mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix position of copy button in AI Tools.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user