- 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:
Ginger Wong
2021-05-29 13:08:10 -07:00
parent c48f0dd9b0
commit c08744c3c4
2 changed files with 11 additions and 10 deletions

View File

@@ -58,11 +58,12 @@ export default class App extends Component {
websocket: new Websocket(),
displayChat: chatStorage === null ? true : chatStorage,
chatInputEnabled: false, // chat input box state
chatDisabled: false,
username: getLocalStorage(KEY_USERNAME) || generateUsername(),
touchKeyboardActive: false,
configData: {},
configData: {
loading: true,
},
extraPageContent: '',
playerActive: false, // player object is active
@@ -541,6 +542,7 @@ export default class App extends Component {
const usernameStyle = chatDisabled ? 'none' : 'flex';
const extraAppClasses = classNames({
'config-loading': configData.loading,
chat: shouldDisplayChat,
'no-chat': !shouldDisplayChat,
'single-col': singleColMode,