Skip to content

Commit

Permalink
Fix portrait mode detection (#582)
Browse files Browse the repository at this point in the history
* Fix portrait mode detection

* Revert changes done on playbar
  • Loading branch information
Kaydax authored Apr 17, 2024
1 parent ec69cc2 commit 04b4d92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/renderer/features/lyrics/synchronized-lyrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const SynchronizedLyricsContainer = styled.div<{ $gap: number }>`
transparent 95%
);
@media screen and (width <= 768px) {
@media screen and (orientation: portrait) {
padding: 5vh 0;
}
`;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/features/lyrics/unsynchronized-lyrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const UnsynchronizedLyricsContainer = styled.div<{ $gap: number }>`
transparent 95%
);
@media screen and (width <= 768px) {
@media screen and (orientation: portrait) {
padding: 5vh 0;
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Container = styled(motion.div)`
justify-content: center;
padding: 2rem;
@media screen and (width <= 768px) {
@media screen and (orientation: portrait) {
padding: 2rem 2rem 1rem;
}
`;
Expand All @@ -53,7 +53,7 @@ const ResponsiveContainer = styled.div`
max-width: 2560px;
margin-top: 5rem;
@media screen and (width <= 768px) {
@media screen and (orientation: portrait) {
grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
grid-template-columns: minmax(0, 1fr);
margin-top: 0;
Expand Down

0 comments on commit 04b4d92

Please sign in to comment.