- A fix for https://github.com/owncast/owncast/issues/1007. Hide app container when configdata is loading
- Also, disable global CSS transition animations for now. If we want to add transitions onto anything, we can target specific elements and add styles individually intead.
This commit is contained in:
@@ -58,11 +58,12 @@ export default class App extends Component {
|
|||||||
websocket: new Websocket(),
|
websocket: new Websocket(),
|
||||||
displayChat: chatStorage === null ? true : chatStorage,
|
displayChat: chatStorage === null ? true : chatStorage,
|
||||||
chatInputEnabled: false, // chat input box state
|
chatInputEnabled: false, // chat input box state
|
||||||
chatDisabled: false,
|
|
||||||
username: getLocalStorage(KEY_USERNAME) || generateUsername(),
|
username: getLocalStorage(KEY_USERNAME) || generateUsername(),
|
||||||
touchKeyboardActive: false,
|
touchKeyboardActive: false,
|
||||||
|
|
||||||
configData: {},
|
configData: {
|
||||||
|
loading: true,
|
||||||
|
},
|
||||||
extraPageContent: '',
|
extraPageContent: '',
|
||||||
|
|
||||||
playerActive: false, // player object is active
|
playerActive: false, // player object is active
|
||||||
@@ -541,6 +542,7 @@ export default class App extends Component {
|
|||||||
const usernameStyle = chatDisabled ? 'none' : 'flex';
|
const usernameStyle = chatDisabled ? 'none' : 'flex';
|
||||||
|
|
||||||
const extraAppClasses = classNames({
|
const extraAppClasses = classNames({
|
||||||
|
'config-loading': configData.loading,
|
||||||
chat: shouldDisplayChat,
|
chat: shouldDisplayChat,
|
||||||
'no-chat': !shouldDisplayChat,
|
'no-chat': !shouldDisplayChat,
|
||||||
'single-col': singleColMode,
|
'single-col': singleColMode,
|
||||||
|
|||||||
@@ -37,9 +37,8 @@ a:hover {
|
|||||||
scrollbar-width: none; /* moz only */
|
scrollbar-width: none; /* moz only */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#app-container.config-loading {
|
||||||
#app-container * {
|
visibility: hidden;
|
||||||
transition: all .25s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
button[disabled] {
|
button[disabled] {
|
||||||
@@ -150,7 +149,6 @@ header {
|
|||||||
|
|
||||||
/* *********** overrides when chat is off ***************************** */
|
/* *********** overrides when chat is off ***************************** */
|
||||||
|
|
||||||
|
|
||||||
.no-chat footer {
|
.no-chat footer {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@@ -159,7 +157,8 @@ header {
|
|||||||
opacity: .75;
|
opacity: .75;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-chat #chat-container-wrap {
|
/* hide chat by default */
|
||||||
|
#chat-container-wrap {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,8 +171,8 @@ header {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat #video-container,
|
.chat main,
|
||||||
.chat #stream-info,
|
.chat footer,
|
||||||
.chat #user-content {
|
.chat #user-content {
|
||||||
width: var(--content-width);
|
width: var(--content-width);
|
||||||
}
|
}
|
||||||
@@ -287,4 +286,4 @@ header {
|
|||||||
|
|
||||||
#external-modal-iframe {
|
#external-modal-iframe {
|
||||||
height: 70vh;
|
height: 70vh;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user