]> cat aescling's git repositories - mastodon.git/commit
Avoid two-step rendering of statuses as much as possible
authorThibaut Girka <thib@sitedethib.com>
Sat, 9 Feb 2019 19:54:11 +0000 (20:54 +0100)
committerThibG <thib@sitedethib.com>
Sun, 10 Feb 2019 21:54:25 +0000 (22:54 +0100)
commit049c9a3b9711ed203855d18a9a549e65e164ec59
tree3e53b7d57dd46b7cfa6e67fdce311e0cd5e10b4c
parent68f3d003d6e841c864330fd5e7bcecadcc9b9178
Avoid two-step rendering of statuses as much as possible

Cache width shared by Video player, MediaGallery and Cards at the
ScrollableList level, pass it down through StatusList and Notifications.
app/javascript/flavours/glitch/components/media_gallery.js
app/javascript/flavours/glitch/components/scrollable_list.js
app/javascript/flavours/glitch/components/status.js
app/javascript/flavours/glitch/features/notifications/components/notification.js
app/javascript/flavours/glitch/features/status/components/card.js
app/javascript/flavours/glitch/features/video/index.js