Added chat tab on mobile layouts and other changes to mobile UI
This commit is contained in:
@@ -67,7 +67,7 @@ export default function ChatContainer(props: Props) {
|
||||
() => (
|
||||
<>
|
||||
<Virtuoso
|
||||
style={{ height: isMobile ? 500 : '77vh' }}
|
||||
style={{ height: isMobile ? 500 : '77vh', width: 'auto' }}
|
||||
ref={chatContainerRef}
|
||||
initialTopMostItemIndex={messages.length - 1} // Force alignment to bottom
|
||||
data={messages}
|
||||
@@ -99,9 +99,11 @@ export default function ChatContainer(props: Props) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className={s.chatHeader}>
|
||||
<span>stream chat</span>
|
||||
</div>
|
||||
{
|
||||
// <div className={s.chatHeader}>
|
||||
// <span>stream chat</span>
|
||||
// </div>
|
||||
}
|
||||
<Spin spinning={loading} indicator={spinIcon}>
|
||||
{MessagesTable}
|
||||
</Spin>
|
||||
|
||||
@@ -20,6 +20,17 @@
|
||||
.inputWrapper {
|
||||
display: flex;
|
||||
position: relative;
|
||||
border-radius: var(--theme-rounded-corners);
|
||||
outline: 1px solid var(--color-owncast-gray-500);
|
||||
&:hover {
|
||||
box-shadow: 0 0 1px 1px var(--color-owncast-gray-300);
|
||||
}
|
||||
& > div {
|
||||
transition: box-shadow .2s ease-in-out;
|
||||
&:focus {
|
||||
// box-shadow: 0 0 1px 1px var(--color-owncast-gray-300);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.emojiButton {
|
||||
|
||||
Reference in New Issue
Block a user