mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Feature / Streamer Mode (#159)
* feat(phone/settings): Add streamer mode setting and PictureReveal component :) * feat(phone/settings): Add PictureReveal streamer mode to twitter and improve its theme a bit
This commit is contained in:
1 parent
d841ee0958
commit
75a4eb176e
27 files changed
+175
-92
No files matched your search
@@ -130,6 +130,19 @@ InjectDebugData(
|
||||
isMine: false,
|
||||
updatedAt: Date.now(),
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
message:
|
||||
'https://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Hadena_albimacula.jpg/800px-Hadena_albimacula.jpg',
|
||||
user_identifier: '123',
|
||||
phone_number: '444-4444',
|
||||
display: 'kidz',
|
||||
avatar: null,
|
||||
groupId: '2',
|
||||
isRead: true,
|
||||
isMine: false,
|
||||
updatedAt: Date.now(),
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { Box, Link, makeStyles, Paper, Typography } from '@material-ui/core';
|
||||
import React from 'react';
|
||||
import { Message } from '../../../../common/typings/messages';
|
||||
import { PictureResponsive } from '../../../../ui/components/PictureResponsive';
|
||||
import { PictureReveal } from '../../../../ui/components/PictureReveal';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
@@ -8,12 +10,6 @@ const useStyles = makeStyles((theme) => ({
|
||||
marginTop: 'auto',
|
||||
},
|
||||
},
|
||||
imageMessage: {
|
||||
width: '80%',
|
||||
maxWidth: '80%',
|
||||
height: '80%',
|
||||
maxHeight: '80%',
|
||||
},
|
||||
mySms: {
|
||||
float: 'right',
|
||||
margin: theme.spacing(1),
|
||||
@@ -64,7 +60,9 @@ export const MessageBubble = ({
|
||||
<Paper className={message.isMine ? classes.mySms : classes.sms} variant="outlined">
|
||||
<Box className={classes.message}>
|
||||
{isImage(message.message) ? (
|
||||
<img src={message.message} className={classes.imageMessage} alt="multimedia" />
|
||||
<PictureReveal>
|
||||
<PictureResponsive src={message.message} alt="message multimedia" />
|
||||
</PictureReveal>
|
||||
) : (
|
||||
<div>{message.message}</div>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user