fix bugs found by Nico

pull/920/head
Malte E 3 years ago
parent 993b0ae721
commit 414257bf0e
  1. 2
      resources/qml/MessageView.qml
  2. 3
      resources/qml/delegates/FileMessage.qml
  3. 3
      resources/qml/delegates/PlayableMediaMessage.qml
  4. 3
      resources/qml/delegates/Redacted.qml
  5. 4
      src/UserSettingsPage.cpp

@ -250,7 +250,7 @@ ScrollView {
Column {
topPadding: userName_.visible? 4: 0
bottomPadding: Settings.bubbles? 0 : 3
bottomPadding: Settings.bubbles? 2 : 3
spacing: 8
visible: (previousMessageUserId !== userId || previousMessageDay !== day || isStateEvent !== previousMessageIsStateEvent)
width: parentWidth

@ -87,8 +87,7 @@ Item {
color: Nheko.colors.alternateBase
z: -1
radius: 10
height: row.height + 24
width: 44 + 24 + 24 + Math.max(Math.min(filesize_.width, filesize_.implicitWidth), Math.min(filename_.width, filename_.implicitWidth))
anchors.fill: parent
}
}

@ -23,7 +23,8 @@ Item {
required property string body
required property string filesize
property double divisor: isReply ? 4 : 2
implicitWidth: type == MtxEvent.VideoMessage ? Math.round(originalWidth*Math.min((timelineView.height/divisor)/(originalWidth*proportionalHeight), 1)) : 500
property int tempWidth: originalWidth < 1? 400: originalWidth
implicitWidth: type == MtxEvent.VideoMessage ? Math.round(tempWidth*Math.min((timelineView.height/divisor)/(tempWidth*proportionalHeight), 1)) : 500
width: parent.width
height: (type == MtxEvent.VideoMessage ? width*proportionalHeight : 80) + fileInfoLabel.height
implicitHeight: height

@ -10,10 +10,9 @@ import im.nheko 1.0
Rectangle{
//required property real delegateWidth
height: redactedLayout.implicitHeight + Nheko.paddingSmall
implicitWidth: redactedLayout.implicitWidth + 2 * Nheko.paddingMedium
//implicitWidth: width
width: parent.width
radius: fontMetrics.lineSpacing / 2 + 2 * Nheko.paddingSmall
color: Nheko.colors.alternateBase

@ -70,8 +70,8 @@ UserSettings::load(std::optional<QString> profile)
enlargeEmojiOnlyMessages_ =
settings.value(QStringLiteral("user/timeline/enlarge_emoji_only_msg"), false).toBool();
markdown_ = settings.value(QStringLiteral("user/markdown_enabled"), true).toBool();
bubbles_ = settings.value(QStringLiteral("user/bubbles_enabled"), true).toBool();
smallAvatars_ = settings.value(QStringLiteral("user/small_avatars_enabled"), true).toBool();
bubbles_ = settings.value(QStringLiteral("user/bubbles_enabled"), false).toBool();
smallAvatars_ = settings.value(QStringLiteral("user/small_avatars_enabled"), false).toBool();
animateImagesOnHover_ =
settings.value(QStringLiteral("user/animate_images_on_hover"), false).toBool();
typingNotifications_ =

Loading…
Cancel
Save