v1.3.3-beta/UI fixes
This commit is contained in:
+16
-4
@@ -41,12 +41,18 @@ import { goTo } from 'route-lite';
|
|||||||
import Create from './Create';
|
import Create from './Create';
|
||||||
import VideoListener from './VideoListener';
|
import VideoListener from './VideoListener';
|
||||||
import CallManager from './CallManager';
|
import CallManager from './CallManager';
|
||||||
import { MoreVert, PauseCircleFilled, LinkOutlined, PlayCircleFilled } from '@material-ui/icons';
|
import {
|
||||||
|
MoreVert,
|
||||||
|
PauseCircleFilled,
|
||||||
|
LinkOutlined,
|
||||||
|
PlayCircleFilled,
|
||||||
|
Cancel,
|
||||||
|
} from '@material-ui/icons';
|
||||||
|
|
||||||
const giphyFetch = new GiphyFetch('ojJbIMUN6XRMn4mHiFFav3rMCpXUg8sq');
|
const giphyFetch = new GiphyFetch('ojJbIMUN6XRMn4mHiFFav3rMCpXUg8sq');
|
||||||
const alertMessage = {
|
const alertMessage = {
|
||||||
name: '<alert>',
|
name: '<alert>',
|
||||||
text: 'Functionality may be buggy, support on this site is in beta.',
|
text: 'Functionality may be buggy, support on this site is in testing.',
|
||||||
time: '',
|
time: '',
|
||||||
uid: '<system>',
|
uid: '<system>',
|
||||||
};
|
};
|
||||||
@@ -392,7 +398,13 @@ export default class Chat extends Component {
|
|||||||
rowsMax="3"
|
rowsMax="3"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder={this.state.gif ? 'Search something...' : 'Say something...'}
|
placeholder={this.state.gif ? 'Search something...' : 'Say something...'}
|
||||||
helperText={this.state.newMessage && !this.state.gif ? 'Enter to send' : null}
|
helperText={
|
||||||
|
this.state.newMessage && !this.state.gif
|
||||||
|
? 'Enter to send'
|
||||||
|
: this.state.gif
|
||||||
|
? 'Click on gif to send'
|
||||||
|
: null
|
||||||
|
}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
className="chat-message-box addFocus"
|
className="chat-message-box addFocus"
|
||||||
value={newMessage}
|
value={newMessage}
|
||||||
@@ -422,7 +434,7 @@ export default class Chat extends Component {
|
|||||||
startAdornment: (
|
startAdornment: (
|
||||||
<InputAdornment position="start">
|
<InputAdornment position="start">
|
||||||
<IconButton onClick={() => this.setState({ gif: !gif })} edge="start">
|
<IconButton onClick={() => this.setState({ gif: !gif })} edge="start">
|
||||||
<Gif />
|
{gif ? <Cancel /> : <Gif />}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</InputAdornment>
|
</InputAdornment>
|
||||||
),
|
),
|
||||||
|
|||||||
+2
-5
@@ -38,6 +38,7 @@
|
|||||||
max-width: 60%;
|
max-width: 60%;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
background-color: rgb(49, 49, 49);
|
background-color: rgb(49, 49, 49);
|
||||||
|
font-size: 14px !important;
|
||||||
}
|
}
|
||||||
img.my-message {
|
img.my-message {
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
@@ -48,7 +49,7 @@ img.my-message {
|
|||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
}
|
}
|
||||||
.party-message {
|
.party-message {
|
||||||
font-size: 1rem !important;
|
font-size: 14px !important;
|
||||||
display: block;
|
display: block;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
max-width: 60%;
|
max-width: 60%;
|
||||||
@@ -89,7 +90,3 @@ img.party-message {
|
|||||||
.my-message:hover ~ .time {
|
.my-message:hover ~ .time {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
body.hulu .my-message,
|
|
||||||
body.hulu .party-message {
|
|
||||||
font-size: 1.4rem !important;
|
|
||||||
}
|
|
||||||
|
|||||||
+13
-10
@@ -123,8 +123,8 @@ export default class VideoListener {
|
|||||||
this.video.element.addEventListener('pause', this.onpause);
|
this.video.element.addEventListener('pause', this.onpause);
|
||||||
}
|
}
|
||||||
this.isUpdating = false;
|
this.isUpdating = false;
|
||||||
this.server = serverPlayer;
|
|
||||||
}
|
}
|
||||||
|
this.server = serverPlayer;
|
||||||
}
|
}
|
||||||
timeout(n) {
|
timeout(n) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -173,6 +173,10 @@ export default class VideoListener {
|
|||||||
return yshow === '' && yepisode === '' ? null : yshow + '\n' + yepisode;
|
return yshow === '' && yepisode === '' ? null : yshow + '\n' + yepisode;
|
||||||
case PLAYER_SOURCE.HBOMAX:
|
case PLAYER_SOURCE.HBOMAX:
|
||||||
case PLAYER_SOURCE.HBONOW:
|
case PLAYER_SOURCE.HBONOW:
|
||||||
|
const bottomHalf = this.video.element.parentNode.parentNode.parentNode.parentNode.parentNode
|
||||||
|
.children[1];
|
||||||
|
bottomHalf.children[0].id = 'hboUpperTitle';
|
||||||
|
bottomHalf.children[1].id = 'hboLowerTitle';
|
||||||
const hboshow = document.querySelector('#hboUpperTitle').innerText;
|
const hboshow = document.querySelector('#hboUpperTitle').innerText;
|
||||||
const hboepisode = document.querySelector('#hboLowerTitle').innerText;
|
const hboepisode = document.querySelector('#hboLowerTitle').innerText;
|
||||||
return hboshow === '' && hboepisode === '' ? null : hboshow + '\n' + hboepisode;
|
return hboshow === '' && hboepisode === '' ? null : hboshow + '\n' + hboepisode;
|
||||||
@@ -198,15 +202,15 @@ export default class VideoListener {
|
|||||||
this.updateStatus({
|
this.updateStatus({
|
||||||
element: videoElement,
|
element: videoElement,
|
||||||
});
|
});
|
||||||
this.updateStatus({
|
|
||||||
showName: await this.getShowName(),
|
|
||||||
});
|
|
||||||
// if (videoElement.currentTime > 0 && !videoElement.paused) {
|
// if (videoElement.currentTime > 0 && !videoElement.paused) {
|
||||||
// this.updateStatus({
|
// this.updateStatus({
|
||||||
// time: videoElement.currentTime,
|
// time: videoElement.currentTime,
|
||||||
// status: PLAYER_STATUS.PLAYING,
|
// status: PLAYER_STATUS.PLAYING,
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
this.updateStatus({
|
||||||
|
showName: await this.getShowName(),
|
||||||
|
});
|
||||||
videoElement.addEventListener('playing', this.onplay);
|
videoElement.addEventListener('playing', this.onplay);
|
||||||
videoElement.addEventListener('pause', this.onpause);
|
videoElement.addEventListener('pause', this.onpause);
|
||||||
}
|
}
|
||||||
@@ -318,12 +322,11 @@ export default class VideoListener {
|
|||||||
? null
|
? null
|
||||||
: () => {
|
: () => {
|
||||||
var hve = document.querySelector('video.default');
|
var hve = document.querySelector('video.default');
|
||||||
if (hve !== null && (this.video.element !== hve || this.video.element === null)) {
|
if (
|
||||||
const bottomHalf =
|
hve !== null &&
|
||||||
hboVideoElement.parentNode.parentNode.parentNode.parentNode.parentNode
|
hve !== undefined &&
|
||||||
.children[1];
|
(this.video.element !== hve || this.video.element === null)
|
||||||
bottomHalf.children[0].id = 'hboUpperTitle';
|
) {
|
||||||
bottomHalf.children[1].id = 'hboLowerTitle';
|
|
||||||
this.firstTimeSync(hve);
|
this.firstTimeSync(hve);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+25
-10
@@ -28,8 +28,7 @@ body.hulu.visible .Player__container,/* HULU */
|
|||||||
body.amazon-prime.visible #dv-web-player.dv-player-fullscreen, /* AMAZON PRIME */
|
body.amazon-prime.visible #dv-web-player.dv-player-fullscreen, /* AMAZON PRIME */
|
||||||
body.disney.visible #hudson-wrapper, /* DISNEY */
|
body.disney.visible #hudson-wrapper, /* DISNEY */
|
||||||
body.youtube.visible #content.ytd-app, /* YOUTUBE */
|
body.youtube.visible #content.ytd-app, /* YOUTUBE */
|
||||||
body.youtube.visible #masthead-container, /* YOUTUBE HEADER */
|
body.youtube.visible #masthead-container /* YOUTUBE HEADER */ {
|
||||||
body.hbo.visible video.default {
|
|
||||||
max-width: var(--body-width) !important;
|
max-width: var(--body-width) !important;
|
||||||
}
|
}
|
||||||
/* HULU MINIMIZED VIDEO */
|
/* HULU MINIMIZED VIDEO */
|
||||||
@@ -184,7 +183,7 @@ body.amazon-prime textarea:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.party-create-container {
|
.party-create-container {
|
||||||
padding: 3.5rem;
|
padding: 38px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -195,6 +194,9 @@ body.amazon-prime textarea:focus {
|
|||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
|
.create-input-card * {
|
||||||
|
font-size: 12px !important;
|
||||||
|
}
|
||||||
.party-create-container .create-input-card .create-mode-select,
|
.party-create-container .create-input-card .create-mode-select,
|
||||||
.party-create-container .create-input-card .create-name,
|
.party-create-container .create-input-card .create-name,
|
||||||
.party-create-container .create-input-card .create-pin {
|
.party-create-container .create-input-card .create-pin {
|
||||||
@@ -216,6 +218,7 @@ body.amazon-prime textarea:focus {
|
|||||||
word-break: break-word !important;
|
word-break: break-word !important;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
padding-right: 1rem !important;
|
padding-right: 1rem !important;
|
||||||
|
font-size: 18px !important;
|
||||||
}
|
}
|
||||||
.thread-container::-webkit-scrollbar {
|
.thread-container::-webkit-scrollbar {
|
||||||
width: 5px;
|
width: 5px;
|
||||||
@@ -237,6 +240,13 @@ textarea::-webkit-scrollbar {
|
|||||||
.chat-message-box > div {
|
.chat-message-box > div {
|
||||||
border-radius: 26px;
|
border-radius: 26px;
|
||||||
}
|
}
|
||||||
|
.chat-message-box .MuiFormHelperText-root {
|
||||||
|
font-size: 10px !important;
|
||||||
|
}
|
||||||
|
.chat-message-box textarea {
|
||||||
|
min-height: 12px !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.party-chat-container {
|
.party-chat-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -267,6 +277,9 @@ textarea::-webkit-scrollbar {
|
|||||||
.party-chat-header-text {
|
.party-chat-header-text {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
.party-chat-header-text .brand-title {
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
.party-controls {
|
.party-controls {
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
@@ -274,6 +287,7 @@ textarea::-webkit-scrollbar {
|
|||||||
margin-right: 0px !important;
|
margin-right: 0px !important;
|
||||||
}
|
}
|
||||||
.party-control-button-text {
|
.party-control-button-text {
|
||||||
|
font-size: 10px !important;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.party-controls button:hover .party-control-button-text {
|
.party-controls button:hover .party-control-button-text {
|
||||||
@@ -288,15 +302,15 @@ textarea::-webkit-scrollbar {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
border-top-left-radius: 0 !important;
|
border-top-left-radius: 0 !important;
|
||||||
border-top-right-radius: 0 !important;
|
border-top-right-radius: 0 !important;
|
||||||
padding: 0 2rem !important;
|
padding: 0 24px !important;
|
||||||
padding-bottom: 1rem !important;
|
padding-bottom: 12px !important;
|
||||||
box-sizing: border-box !important;
|
box-sizing: border-box !important;
|
||||||
}
|
}
|
||||||
.media-info-card .MuiCardContent-root {
|
.media-info-card .MuiCardContent-root {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
.media-info-at {
|
.media-info-at {
|
||||||
font-size: 1rem !important;
|
font-size: 10px !important;
|
||||||
padding-left: 3px !important;
|
padding-left: 3px !important;
|
||||||
}
|
}
|
||||||
.media-info-container {
|
.media-info-container {
|
||||||
@@ -304,20 +318,21 @@ textarea::-webkit-scrollbar {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
.media-info-icon {
|
.media-info-icon {
|
||||||
width: 3.5rem !important;
|
width: 48px !important;
|
||||||
height: 3.5rem !important;
|
height: 48px !important;
|
||||||
}
|
}
|
||||||
.media-info-right {
|
.media-info-right {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
}
|
}
|
||||||
.media-info-right .show-name {
|
.media-info-right .show-name {
|
||||||
font-size: 1.2rem;
|
font-size: 12px;
|
||||||
line-height: 1.75rem;
|
line-height: 16px;
|
||||||
white-space: break-spaces !important;
|
white-space: break-spaces !important;
|
||||||
}
|
}
|
||||||
.media-info-link {
|
.media-info-link {
|
||||||
color: inherit !important;
|
color: inherit !important;
|
||||||
|
font-size: 10px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.giphy-carousel::before {
|
.giphy-carousel::before {
|
||||||
|
|||||||
Reference in New Issue
Block a user