From 8e6ae3c04723517aa0214ca8307c22ed5b8dd8f7 Mon Sep 17 00:00:00 2001 From: Alexandra Betouni Date: Fri, 11 Feb 2022 21:34:12 +0200 Subject: [PATCH] fix(Browser) Transaction Popup was misaligned Fixed transaction popup position Fixed JSDialogWindow title was going off popup boundaries Closes #4361 --- ui/app/AppLayouts/Browser/BrowserLayout.qml | 1 + ui/imports/shared/popups/ModalPopup.qml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ui/app/AppLayouts/Browser/BrowserLayout.qml b/ui/app/AppLayouts/Browser/BrowserLayout.qml index ff655d8395..bdba5e3f36 100644 --- a/ui/app/AppLayouts/Browser/BrowserLayout.qml +++ b/ui/app/AppLayouts/Browser/BrowserLayout.qml @@ -56,6 +56,7 @@ Rectangle { // TODO we'll need a new dialog at one point because this one is not using the same call, but it's good for now property Component sendTransactionModalComponent: SignTransactionModal { + anchors.centerIn: parent store: browserWindow.globalStore contactsStore: browserWindow.globalStore.profileSectionStore.contactsStore } diff --git a/ui/imports/shared/popups/ModalPopup.qml b/ui/imports/shared/popups/ModalPopup.qml index 6fdc20730e..9a0492acbd 100644 --- a/ui/imports/shared/popups/ModalPopup.qml +++ b/ui/imports/shared/popups/ModalPopup.qml @@ -70,6 +70,8 @@ Popup { font.bold: true font.pixelSize: 17 height: visible ? 24 : 0 + width: visible ? parent.width - 44 : 0 + elide: Text.ElideRight visible: !!title verticalAlignment: Text.AlignVCenter }