diff --git a/app/assets/stylesheets/application.scss.erb b/app/assets/stylesheets/application.scss.erb index 87f2b4c5..5e920d9b 100644 --- a/app/assets/stylesheets/application.scss.erb +++ b/app/assets/stylesheets/application.scss.erb @@ -672,9 +672,21 @@ label { position: relative; /*overflow:hidden; */ } -.main.compressed { - width: calc(100% - 300px); +.compressed { + .upperRightUI { + right: 324px; + } + .upperRightMapButtons { + right: 434px; + } + .mapControls { + right: 324px; + } + .infoAndHelp { + right: 370px; + } } + #infovis-canvas { -webkit-touch-callout: none; -webkit-user-select: none; diff --git a/frontend/src/components/MapView/MapChat/index.js b/frontend/src/components/MapView/MapChat/index.js index 3adc91f7..d1bd5d50 100644 --- a/frontend/src/components/MapView/MapChat/index.js +++ b/frontend/src/components/MapView/MapChat/index.js @@ -105,9 +105,9 @@ class MapChat extends Component { } render = () => { - const rightOffset = this.props.chatOpen ? '0' : '-300px' - const { conversationLive, isParticipating, participants, messages, inviteACall, inviteToJoin } = this.props + const { chatOpen, conversationLive, isParticipating, participants, messages, inviteACall, inviteToJoin } = this.props const { videosShowing, cursorsShowing, alertSound, unreadMessages } = this.state + const rightOffset = chatOpen ? '0' : '-300px' return (
{ this.messagesDiv = div }}> {makeList(messages)}
- + />}
)