From 6a9bd579d19e74f1c35ec1258753b8ad85dfaa70 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 28 Apr 2021 14:26:56 -0400 Subject: [PATCH] fix(CreateCommunity): fix separator margins --- .../CommunityComponents/CreateCommunityPopup.qml | 14 ++++++++++---- .../CommunityComponents/MembershipRadioButton.qml | 4 ++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml index 2c67a7ed45..9847edcf38 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CreateCommunityPopup.qml @@ -47,10 +47,12 @@ ModalPopup { id: scrollView anchors.fill: parent - rightPadding: Style.current.bigPadding - anchors.rightMargin: - Style.current.padding - leftPadding: Style.current.bigPadding - anchors.leftMargin: - Style.current.padding + rightPadding: Style.current.padding + anchors.rightMargin: -Style.current.padding + anchors.topMargin: -Style.current.padding + leftPadding: Style.current.padding + topPadding: Style.current.padding + anchors.leftMargin: -Style.current.padding contentHeight: content.height ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.vertical.policy: ScrollBar.AlwaysOn @@ -333,6 +335,10 @@ ModalPopup { id: separator1 anchors.top: colorPicker.bottom anchors.topMargin: isEdit ? 0 : Style.current.bigPadding + anchors.left: parent.left + anchors.leftMargin: -Style.current.padding + anchors.right: parent.right + anchors.rightMargin: -Style.current.padding visible: !isEdit } diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/MembershipRadioButton.qml b/ui/app/AppLayouts/Chat/CommunityComponents/MembershipRadioButton.qml index 35f486f27e..e87b2c4e49 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/MembershipRadioButton.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/MembershipRadioButton.qml @@ -45,5 +45,9 @@ Item { visible: !root.hideSeparator anchors.top: radioDesc.bottom anchors.topMargin: visible ? Style.current.halfPadding : 0 + anchors.left: parent.left + anchors.leftMargin: -Style.current.halfPadding + anchors.right: parent.right + anchors.rightMargin: -Style.current.halfPadding } }