EventFile: be as tall as the message avatars
This commit is contained in:
parent
1d43d522e6
commit
b3e3fd7bc6
11
TODO.md
11
TODO.md
|
@ -1,8 +1,5 @@
|
|||
# TODO
|
||||
|
||||
- some way to show name and date on EventFile
|
||||
- sentinel func to report path if already cached without having to click
|
||||
- verify eventfile height
|
||||
|
||||
- Make dark bar extend down pane
|
||||
- Verify default size
|
||||
|
@ -13,12 +10,15 @@
|
|||
- Send the monitor PR
|
||||
- nio ClientTimeout
|
||||
|
||||
- clicking on encrypted images opens the thumbnail
|
||||
- Handle set avatar upload errors
|
||||
- Support encrypted m.file
|
||||
- Confirmation box after picking file to upload
|
||||
- Show real progression for mxc thumbnail loadings
|
||||
|
||||
- Some way to show name and date on EventFile
|
||||
- Sentinel function to report download file path if already cached,
|
||||
without having to click & try downloading first
|
||||
- EventFile download UI & Save as... in context menu
|
||||
|
||||
- Show reason under broken thumbnail icons
|
||||
- Support m.file thumbnails
|
||||
- Generate video thumbnails
|
||||
|
@ -30,7 +30,6 @@
|
|||
- Audio: online playback is buggy, must download+play file
|
||||
- EventLink
|
||||
- Special treatment for matrix.to URLs?
|
||||
- EventFile & Downloading (right click on media > save as...)
|
||||
- Prevent using upload keybinds in rooms with no perms
|
||||
|
||||
## Refactoring
|
||||
|
|
|
@ -41,6 +41,7 @@ HButton {
|
|||
verticalAlignment: Qt.AlignVCenter
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
HRowLayout {
|
||||
|
@ -54,6 +55,7 @@ HButton {
|
|||
color: theme.colors.halfDimText
|
||||
|
||||
visible: Layout.maximumWidth > 0
|
||||
Layout.fillHeight: true
|
||||
Layout.maximumWidth:
|
||||
text && tile.width >= 160 * theme.uiScale ?
|
||||
implicitWidth : 0
|
||||
|
@ -72,6 +74,7 @@ HButton {
|
|||
visible: Layout.maximumHeight > 0
|
||||
Layout.maximumHeight: text ? implicitWidth : 0
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
|
||||
Behavior on Layout.maximumHeight { HNumberAnimation {} }
|
||||
}
|
||||
|
|
|
@ -10,6 +10,7 @@ HTile {
|
|||
theme.chat.message.fileMinWidth),
|
||||
Math.min(eventContent.messageBodyWidth, implicitWidth),
|
||||
)
|
||||
height: Math.max(theme.chat.message.avatarSize, implicitHeight)
|
||||
|
||||
title.text: loader.singleMediaInfo.media_title || qsTr("Untitled file")
|
||||
title.elide: Text.ElideMiddle
|
||||
|
|
Loading…
Reference in New Issue
Block a user