~vesto/grooveboat

4e2c7058afff81be2d933d1bb459eaaa2b5764b1 — Steve Gattuso 5 years ago 801d482
properly set now playing of room
2 files changed, 8 insertions(+), 3 deletions(-)

M src/js/pages/room-selector/index.js
M src/scss/pages/room-selector.scss
M src/js/pages/room-selector/index.js => src/js/pages/room-selector/index.js +4 -3
@@ 147,9 147,10 @@ const RoomSelectorPage = ({history}) => {
            {(rooms.count() > 0) && (
              <ul className="selector--rooms">
                {rooms.map((r) => {
                  let nowPlaying = r.getIn(['nowPlaying', 'filename']);
                  if (!nowPlaying) {
                    nowPlaying = 'nothing playing';
                  const filename = r.getIn(['nowPlaying', 'track', 'filename']);
                  let nowPlaying = 'nothing playing';
                  if (filename) {
                    nowPlaying = `🎶 ${filename}`;
                  }

                  return <li

M src/scss/pages/room-selector.scss => src/scss/pages/room-selector.scss +4 -0
@@ 187,6 187,10 @@
    color: $color-alt-text;
    font-size: 14px;
    margin-top: 5px;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}