diff --git a/src/LyricsPane.css b/src/LyricsPane.css index 2d7b175..c77d334 100644 --- a/src/LyricsPane.css +++ b/src/LyricsPane.css @@ -4,21 +4,6 @@ text-align: center; } -@media (max-width: 800px) { - div.words { - column-count: 1; - } - .lyricsPane { - width: 300px; - } -} - -@media (min-width: 800px) { - div.words { - column-count: 2; - } -} - textarea { width: 90%; } @@ -28,4 +13,5 @@ textarea { border-style: solid; border-color: rgb(240, 240, 255); min-height: 25vh; + column-width: 15em; } diff --git a/src/LyricsPane.js b/src/LyricsPane.js index 59d0206..9fec8ca 100644 --- a/src/LyricsPane.js +++ b/src/LyricsPane.js @@ -5,6 +5,8 @@ import './LyricsPane.css'; import Word from './Word.js'; import { NOINDEX } from './constants.js'; +/** Shows the entire current verse in a big multi-column block. Not responsible + * for the editing view. */ class LyricsPane extends Component { renderWord = (word) => { diff --git a/src/Songsim.css b/src/Songsim.css index 296a7bf..211b47c 100644 --- a/src/Songsim.css +++ b/src/Songsim.css @@ -1,8 +1,14 @@ .mainContainer { display: flex; + flex-direction: row; + justify-content: space-evenly; margin: 10px; } +.matrixPane { + flex: none; +} + .mainContainerMobile { } @@ -15,4 +21,5 @@ } .lyricsPane { + flex: 1 1 auto; } diff --git a/src/Songsim.js b/src/Songsim.js index a960b03..f9c50cc 100644 --- a/src/Songsim.js +++ b/src/Songsim.js @@ -388,7 +388,9 @@ class Songsim extends Component { return (
- {matrix} +
+ {matrix} +