Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Room UI Redesign: Miscellaneous Fixes #3727

Merged
merged 8 commits into from
Jan 22, 2021
Merged

Conversation

robertlong
Copy link
Contributor

@robertlong
Copy link
Contributor Author

Couldn't test the chat message spawning locally so I tested on staging. There seems to be some issues with the new presence-log styles. Fixing now.

@robertlong
Copy link
Contributor Author

I couldn't find the right SVG foreign element CSS incantation so I fixed the chat message rendering with html2canvas which needs thorough testing, particularly with VR perf. I could have rendered chat bubbles manually, but multi-line text, emojis etc. would have been a lot of work. If perf isn't an issue I think html2canvas is easier to maintain as we can more or less style chat messages as we want. It could also be used for more things in the future.

@johnshaughnessy johnshaughnessy self-assigned this Jan 21, 2021
@@ -37,6 +37,7 @@
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪


const formattedBody = <Linkify properties={{ target: "_blank", rel: "noopener referrer" }}>{bodyWithEmojis}</Linkify>;
if (messages.length === 1) {
const emojiComponents = toEmojis(cleanedBody);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am a potato
here are some emojis

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👐 🥔

@@ -4,12 +4,10 @@ import PropTypes from "prop-types";
import styles from "../assets/stylesheets/presence-log.scss";
import classNames from "classnames";
import { toArray as toEmojis } from "react-emoji-render";
import serializeElement from "../utils/serialize-element";
import html2canvas from "html2canvas";
Copy link
Contributor

@johnshaughnessy johnshaughnessy Jan 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a VR headset handy to test perf... (you mentioned in your comments this might be a problem)

But it seems good that html2canvas only pulls in a single dependency (which pulls in just one more).

@robertlong robertlong merged commit a430156 into room-ui-redesign Jan 22, 2021
@robertlong robertlong deleted the redesign/misc-fixes branch January 22, 2021 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants