Fix event delegates extra bottom space
This commit is contained in:
parent
b4561ce50b
commit
e90312803b
2
TODO.md
2
TODO.md
|
@ -4,8 +4,6 @@
|
|||
- rename goto*account → scrollto*account
|
||||
|
||||
- fix opacity
|
||||
- fix back/front buttons in small window
|
||||
- fix message delegate too tall
|
||||
- fix left rooms opacity
|
||||
- fix escape keybinds (filter rooms, message selection)
|
||||
- fix python getting stuck when loading large room
|
||||
|
|
|
@ -271,10 +271,14 @@ HRowLayout {
|
|||
|
||||
HRepeater {
|
||||
id: linksRepeater
|
||||
model: [
|
||||
eventDelegate.currentModel.media_url,
|
||||
...JSON.parse(eventDelegate.currentModel.links),
|
||||
]
|
||||
model: {
|
||||
const links = JSON.parse(eventDelegate.currentModel.links)
|
||||
|
||||
if (eventDelegate.currentModel.media_url)
|
||||
links.push(eventDelegate.currentModel.media_url)
|
||||
|
||||
return links
|
||||
}
|
||||
|
||||
EventMediaLoader {
|
||||
singleMediaInfo: eventDelegate.currentModel
|
||||
|
|
|
@ -5,6 +5,7 @@ import "../../../Base"
|
|||
|
||||
HLoader {
|
||||
id: loader
|
||||
visible: Boolean(item)
|
||||
x: eventContent.spacing
|
||||
|
||||
onTypeChanged: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user