Fix splash error message when the app can't initialize. (#7615)
This commit is contained in:
parent
68718f32b2
commit
2e565fd95b
2 changed files with 14 additions and 3 deletions
|
@ -241,8 +241,12 @@ export default class SplashScreen extends React.PureComponent<Props, State> {
|
|||
|
||||
return (
|
||||
<div className="splash">
|
||||
<h1 className="splash__title">LBRY</h1>
|
||||
<div className="splash__details">{details}</div>
|
||||
{!error && (
|
||||
<>
|
||||
<h1 className="splash__title">LBRY</h1>
|
||||
<div className="splash__details">{details}</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
{!animationHidden && !error && (
|
||||
<css-doodle class="doodle">
|
||||
|
@ -290,7 +294,7 @@ export default class SplashScreen extends React.PureComponent<Props, State> {
|
|||
)}
|
||||
{error && (
|
||||
<Card
|
||||
title={__('Error starting up')}
|
||||
title={<h1 className="splash__error-title">{__('Error starting up')}</h1>}
|
||||
subtitle={
|
||||
<React.Fragment>
|
||||
<p>
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
margin-top: -1rem;
|
||||
}
|
||||
|
||||
.splash__error-title {
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.splash__animation-toggle {
|
||||
position: fixed;
|
||||
top: var(--spacing-l);
|
||||
|
|
Loading…
Reference in a new issue