widgetbot-io / message-renderer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
When using virtual list libraries such as react-virtuoso, rendering attachment images causes performance issues. This can probably be solved by using some sort of lazy loading technique for images.
Like SYSTEM and SERVER are chat badges
Rendering messages with
all cause overflow issues on mobile devices when rendering with lists such as React Virtuoso, which causes blank spaces and jumping.
I'm sure its the images causing this, because when tested with channels that only have text content and no image attachments, it renders fine on mobile.
Video of issue:
https://github.com/widgetbot-io/message-renderer/assets/94828874/a6bffae4-96fb-45aa-836f-20f5a0e25147
The only way to get the renderer to resolve the authors roles/nick color is by having to provide a 'joined_at' property on the author and then after that you have to provide a 'user' object which is just the author object
This seems like the culprit
message-renderer/src/Message/MessageAuthor.tsx
Lines 27 to 35 in e99b55c
me
property to true
on a reaction has no effect (all reactions have the property set to true
and the last one is hovered)margin-left: 200px
)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.