Skip to content

Commit

Permalink
Fix sneakpeak not working on larger screens
Browse files Browse the repository at this point in the history
  • Loading branch information
hampfh committed Oct 29, 2020
1 parent 48905d3 commit b99d68b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion client/src/components/screens/Subjects/Subjects.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ body {
display: grid;
margin: 0;
width: 100%;
height: 100vh;
background-color: var(--primary-background);
scrollbar-width: thin;
justify-content: center;
Expand Down
12 changes: 7 additions & 5 deletions client/src/components/screens/Subjects/Subjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ export class Subjects extends Component<PropsForComponent, StateForComponent> {
}
</div>
</div>
{this.props.app.sneakPeak == null || window.innerWidth < 750 || window.innerHeight < 600 || isMobile() ? null :
<SubjectSneakPeak
updateSubjects={this.props.updateSubjects}
/>
}
<div className="SneakPeakContainer">
{this.props.app.sneakPeak == null || window.innerWidth < 750 || window.innerHeight < 600 || isMobile() ? null :
<SubjectSneakPeak
updateSubjects={this.props.updateSubjects}
/>
}
</div>

<div className="bottomContainer">
{isMobile() || window.innerHeight < 500 || window.innerWidth < 600 ? null :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

.SneakPeakWrapper {
justify-self: center;
align-self: flex-start;
max-height: 20rem;

animation: SneakPeakSummon;
animation-duration: 0.25s;
Expand Down

0 comments on commit b99d68b

Please sign in to comment.