diff --git a/packages/app/src/components/LiveChat/index.jsx b/packages/app/src/components/LiveChat/index.jsx index 636adf8e..d3681e97 100755 --- a/packages/app/src/components/LiveChat/index.jsx +++ b/packages/app/src/components/LiveChat/index.jsx @@ -336,23 +336,34 @@ export default class LiveChat extends React.Component { return
{ - this.state.timeline.length === 0 ? - : -
- { - this.state.timeline.map((line, index) => { - return - }) - } -
+ !this.props.compact && this.state.timeline.length === 0 && + } + + { + this.props.compact && this.state.timeline.length === 0 &&

+ Welcome to the room +

+ } + + { + this.state.timeline.length !== 0 &&
+ { + this.state.timeline.map((line, index) => { + return + }) + } +
}
diff --git a/packages/app/src/components/LiveChat/index.less b/packages/app/src/components/LiveChat/index.less index acc6eb3b..d078df17 100755 --- a/packages/app/src/components/LiveChat/index.less +++ b/packages/app/src/components/LiveChat/index.less @@ -9,15 +9,59 @@ overflow: hidden; + transition: all 250ms ease-in-out; + &.empty { justify-content: center; align-items: center; + + &.compact { + height: 5vh!important; + } + } + + &.compact { + height: 15vh; + + justify-content: flex-end; + + .liveChat_timeline { + position: relative; + + display: flex; + flex-direction: column; + + padding: 0; + margin: 0; + + margin-bottom: 10px; + + gap: 5px; + + .textRoom_line { + padding: 0; + margin: 0; + + h4 { + font-size: 0.8rem; + } + } + } + + .liveChat_textInput { + position: relative; + + bottom: 0; + left: 0; + + margin-bottom: 0; + } } &.floating { .textRoom_line { display: relative; - + background-color: rgba(var(--layoutBackgroundColor), 0.7); backdrop-filter: blur(20px); }