fix(@desktop/chat): Fix small UI issues

1. Removed back button from pinned popup
2. Added border to user identifier in members list

fixes #3552
This commit is contained in:
Khushboo Mehta 2021-09-23 12:07:07 +02:00 committed by Iuri Matias
parent f54f3a61bf
commit 3e8313d176
2 changed files with 12 additions and 17 deletions

View File

@ -5,6 +5,9 @@ import "../../../../shared/status"
import "../../../../imports" import "../../../../imports"
import "../components" import "../components"
import StatusQ.Components 0.1
import StatusQ.Core.Theme 0.1
Item { Item {
id: wrapper id: wrapper
anchors.right: parent.right anchors.right: parent.right
@ -72,17 +75,19 @@ Item {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Rectangle { StatusBadge {
width: 10 id: statusBadge
height: 10 width: 15
radius: (width/2) height: 15
anchors.left: contactImage.right anchors.left: contactImage.right
anchors.leftMargin: -Style.current.smallPadding anchors.leftMargin: -Style.current.smallPadding
anchors.bottom: contactImage.bottom anchors.bottom: contactImage.bottom
visible: wrapper.isOnline visible: wrapper.isOnline && !((statusType === -1) && (lastSeenMinutesAgo > 7))
border.width: 3
border.color: Theme.palette.statusAppNavBar.backgroundColor
property real lastSeenMinutesAgo: ((currentTime/1000 - parseInt(lastSeen)) / 60);
color: { color: {
if (visible) { if (visible) {
var lastSeenMinutesAgo = ((currentTime/1000 - parseInt(lastSeen)) / 60);
if (statusType === Constants.statusType_DoNotDisturb) { if (statusType === Constants.statusType_DoNotDisturb) {
return Style.current.red; return Style.current.red;
} else if (isCurrentUser || (lastSeenMinutesAgo < 5.5)) { } else if (isCurrentUser || (lastSeenMinutesAgo < 5.5)) {

View File

@ -176,17 +176,7 @@ ModalPopup {
footer: Item { footer: Item {
width: parent.width width: parent.width
height: btnBack.height height: btnUnpin.height
StatusRoundButton {
id: btnBack
anchors.left: parent.left
icon.name: "arrow-right"
icon.width: 20
icon.height: 16
rotation: 180
onClicked: popup.close()
}
StatusButton { StatusButton {
id: btnUnpin id: btnUnpin