[style] change loading indicator location
This commit is contained in:
parent
ec4338378e
commit
c81e5e0651
3 changed files with 4 additions and 7 deletions
|
@ -11,15 +11,15 @@
|
|||
|
||||
<body>
|
||||
<div class="container bg-white rounded-lg shadow-md flex flex-col">
|
||||
<h1 class="flex-none text-3xl font-bold mb-4 text-center">AAII</h1>
|
||||
<h1 class="flex-none text-3xl font-bold mb-4 text-center">AAII
|
||||
<div class="typing-indicator" id="typingIndicator"></div>
|
||||
</h1>
|
||||
<div class="chat break-all" id="chatContainer">
|
||||
</div>
|
||||
<div class="flex-none flex">
|
||||
<textarea type="text" id="userInput" placeholder="Type message here" class="outline-none flex-auto"></textarea>
|
||||
<button class="send-button flex-none" id="sendButton" >Send</button>
|
||||
</div>
|
||||
<div class="typing-indicator" id="typingIndicator">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="module" src="script.js"></script>
|
||||
|
|
|
@ -95,7 +95,7 @@ let typingTimeout;
|
|||
|
||||
function showTypingIndicator() {
|
||||
clearTimeout(typingTimeout);
|
||||
typingIndicator.style.display = "inline-block";
|
||||
typingIndicator.style.display = "inline-flex";
|
||||
}
|
||||
|
||||
function hideTypingIndicator() {
|
||||
|
|
|
@ -146,9 +146,6 @@ input[type="text"] {
|
|||
|
||||
.typing-indicator {
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin-top: 8px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #333;
|
||||
|
|
Loading…
Reference in a new issue