diff --git a/app/assets/stylesheets/chat.scss b/app/assets/stylesheets/chat.scss index 7457a7bd4..236b5f126 100644 --- a/app/assets/stylesheets/chat.scss +++ b/app/assets/stylesheets/chat.scss @@ -12,13 +12,7 @@ } .live-chat { - height: calc(100vh - 56px); - - &.live-chat--iossafari { - height: calc(100vh - 190px); - } - - overflow-y: hidden; + height: calc(100 * var(--vh) - var(--header-height)); } .live-chat { @@ -28,14 +22,10 @@ .chat { display: flex; - height: calc(100vh - var(--header-height)); + height: calc(100 * var(--vh) - var(--header-height)); position: relative; overflow-x: hidden; overflow-y: hidden; - - &.chat--iossafari { - height: calc(100vh - 201px); - } } .chat__channels { @@ -297,7 +287,7 @@ @media screen and (max-width: 426px) { padding: 10px; min-width: 50%; - width: calc(100% - 16px); + width: calc(100%); position: fixed; height: 100%; margin-left: 0; diff --git a/app/javascript/chat/chat.jsx b/app/javascript/chat/chat.jsx index dc8185af3..d8549debe 100644 --- a/app/javascript/chat/chat.jsx +++ b/app/javascript/chat/chat.jsx @@ -1842,11 +1842,6 @@ export default class Chat extends Component { render() { const { state } = this; - const detectIOSSafariClass = - navigator.userAgent.match(/iPhone/i) && - !navigator.userAgent.match('CriOS') - ? ' chat--iossafari' - : ''; let channelHeader =