- {this.renderMatchupDisplay()}
- {this.renderGameDetails()}
+
+
+ {this.renderErrorModal()}
+
+ {this.renderOverall()}
+ {this.renderStocks()}
+ {this.renderPunishes()}
-
-
- {this.renderOverall()}
- {this.renderStocks()}
- {this.renderPunishes()}
-
-
+
+
);
}
@@ -401,6 +372,10 @@ export default class GameProfile extends Component {
+
+ {this.renderMatchupDisplay()}
+ {this.renderGameDetails()}
+
{this.renderContent()}
diff --git a/app/components/stats/GameProfile.scss b/app/components/stats/GameProfile.scss
index 4acc758cb..7a8020ff9 100644
--- a/app/components/stats/GameProfile.scss
+++ b/app/components/stats/GameProfile.scss
@@ -1,12 +1,15 @@
-@import "../../colors.global";
+@import '../../colors.global';
$header-height: 97px;
.stats-player-header {
+ position: relative;
background: $background-lightest !important;
- box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
- margin: 0 -34px 0 -34px !important;
- padding: 0 48px 0 48px !important;
+ width: calc(100% + 40px);
+ padding: 0 40px 0 34px;
+ margin-left: -20px;
+ z-index: 2; // needed for shadow to show up
+ box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
.matchup-display {
display: grid;
@@ -39,7 +42,6 @@ $header-height: 97px;
.play-button {
justify-self: end;
- margin-right: 14px;
}
}
@@ -79,19 +81,6 @@ $header-height: 97px;
}
}
-.sticky-names {
- z-index: 2;
- position: relative;
-}
-
-.stats-section {
- padding-top: 28px;
-
- &.stuck {
- margin-top: $header-height !important;
- }
-}
-
.vs-element {
color: rgba(255, 255, 255, 0.5);
line-height: 0.8;
diff --git a/app/containers/ConsolePage.js b/app/containers/ConsolePage.js
index 281988e00..51915a57a 100644
--- a/app/containers/ConsolePage.js
+++ b/app/containers/ConsolePage.js
@@ -9,6 +9,7 @@ function mapStateToProps(state) {
return {
store: state.console,
errors: state.errors,
+ topNotifOffset: _.get(state.notifs, ['activeNotif', 'heightPx']) || 0,
};
}
diff --git a/app/containers/FileLoaderPage.js b/app/containers/FileLoaderPage.js
index 64071b2aa..c271db301 100644
--- a/app/containers/FileLoaderPage.js
+++ b/app/containers/FileLoaderPage.js
@@ -10,7 +10,7 @@ function mapStateToProps(state) {
return {
store: state.fileLoader,
errors: state.errors,
- globalNotifs: state.notifs,
+ topNotifOffset: _.get(state.notifs, ['activeNotif', 'heightPx']) || 0,
};
}
diff --git a/app/containers/GameProfilePage.js b/app/containers/GameProfilePage.js
index 008a11ca1..6cd3c3f67 100644
--- a/app/containers/GameProfilePage.js
+++ b/app/containers/GameProfilePage.js
@@ -1,3 +1,4 @@
+import _ from "lodash";
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import GameProfile from '../components/stats/GameProfile';
@@ -8,7 +9,7 @@ function mapStateToProps(state) {
return {
store: state.game,
errors: state.errors,
- globalNotifs: state.notifs,
+ topNotifOffset: _.get(state.notifs, ['activeNotif', 'heightPx']) || 0,
};
}
diff --git a/app/containers/SettingsPage.js b/app/containers/SettingsPage.js
index cf5af9a66..fb8bec8a5 100644
--- a/app/containers/SettingsPage.js
+++ b/app/containers/SettingsPage.js
@@ -9,6 +9,7 @@ function mapStateToProps(state) {
return {
store: state.settings,
errors: state.errors,
+ topNotifOffset: _.get(state.notifs, ['activeNotif', 'heightPx']) || 0,
};
}