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:
parent
f54f3a61bf
commit
3e8313d176
|
@ -5,6 +5,9 @@ import "../../../../shared/status"
|
|||
import "../../../../imports"
|
||||
import "../components"
|
||||
|
||||
import StatusQ.Components 0.1
|
||||
import StatusQ.Core.Theme 0.1
|
||||
|
||||
Item {
|
||||
id: wrapper
|
||||
anchors.right: parent.right
|
||||
|
@ -72,17 +75,19 @@ Item {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
width: 10
|
||||
height: 10
|
||||
radius: (width/2)
|
||||
StatusBadge {
|
||||
id: statusBadge
|
||||
width: 15
|
||||
height: 15
|
||||
anchors.left: contactImage.right
|
||||
anchors.leftMargin: -Style.current.smallPadding
|
||||
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: {
|
||||
if (visible) {
|
||||
var lastSeenMinutesAgo = ((currentTime/1000 - parseInt(lastSeen)) / 60);
|
||||
if (statusType === Constants.statusType_DoNotDisturb) {
|
||||
return Style.current.red;
|
||||
} else if (isCurrentUser || (lastSeenMinutesAgo < 5.5)) {
|
||||
|
|
|
@ -176,17 +176,7 @@ ModalPopup {
|
|||
|
||||
footer: Item {
|
||||
width: parent.width
|
||||
height: btnBack.height
|
||||
|
||||
StatusRoundButton {
|
||||
id: btnBack
|
||||
anchors.left: parent.left
|
||||
icon.name: "arrow-right"
|
||||
icon.width: 20
|
||||
icon.height: 16
|
||||
rotation: 180
|
||||
onClicked: popup.close()
|
||||
}
|
||||
height: btnUnpin.height
|
||||
|
||||
StatusButton {
|
||||
id: btnUnpin
|
||||
|
|
Loading…
Reference in New Issue