mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 03:11:56 +00:00
Add vertical scrolling to messages
This commit is contained in:
parent
c9f0600689
commit
62052b8383
@ -4,7 +4,7 @@
|
||||
<div class="tao-grid-message-header">
|
||||
<img class="tao-grid-center-left" src="images/avataobot.svg"/>
|
||||
<div class="tao-grid-center-left originator">{{message.originator}}</div>
|
||||
<div class="timestamp tao-grid-center-right">{{message.timestamp | date:'yyyy-MM-dd HH:mm:ss'}}</div>
|
||||
<div class="timestamp tao-grid-center-right">{{message.timestamp | date:'HH:mm:ss'}}</div>
|
||||
</div>
|
||||
<div [innerHtml]="message.message"></div>
|
||||
</div>
|
||||
|
@ -150,12 +150,17 @@ $font-size-base: 14px;
|
||||
|
||||
|
||||
.tao-messages-main {
|
||||
|
||||
max-height: 50vmin;
|
||||
overflow-y: scroll;
|
||||
|
||||
h5 {
|
||||
margin-bottom: $small;
|
||||
color: $tao-blue-500;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.tao-grid-message {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr auto;
|
||||
|
Loading…
Reference in New Issue
Block a user