fixed the send button, finally.
This commit is contained in:
@@ -117,7 +117,7 @@ body {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
width: auto;
|
||||
padding: 14px 20px;
|
||||
border-radius: 999px;
|
||||
border: none;
|
||||
@@ -146,6 +146,10 @@ body {
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.actions .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: var(--secondary);
|
||||
color: var(--secondary-text);
|
||||
@@ -267,12 +271,41 @@ body {
|
||||
|
||||
.chat-input-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
background: rgba(3, 12, 24, 0.7);
|
||||
border-radius: 22px;
|
||||
padding: 4px 6px 4px 12px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.chat-input-row .input {
|
||||
flex: 1;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
margin-bottom: 0;
|
||||
border: none;
|
||||
background: transparent;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.chat-send-btn {
|
||||
width: 44px;
|
||||
min-width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
border-radius: 14px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.chat-send-btn .send-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
.chat-message {
|
||||
|
||||
@@ -52,9 +52,14 @@
|
||||
<div class="chat-log" id="chat-log"></div>
|
||||
|
||||
<form class="chat-input-row" id="chat-form">
|
||||
<input type="text" id="chat-input" class="input chat-input" placeholder="Type a message..." autocomplete="off" />
|
||||
<button class="btn btn-primary" id="chat-send-btn">
|
||||
Send
|
||||
<input type="text" id="chat-input" class="input chat-input" placeholder="Type a message..."
|
||||
autocomplete="off" />
|
||||
<button class="btnx btn-primary chat-send-btn" id="chat-send-btn" aria-label="Send message"
|
||||
type="submit">
|
||||
<svg class="send-icon" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path
|
||||
d="M3.4 20.6c-.5.2-.9-.3-.7-.8l3-8.2c.1-.3 0-.7-.2-.9l-3-3.4c-.4-.5 0-1.3.7-1.1l18.5 6.2c.6.2.6 1 0 1.2L3.4 20.6zm3.5-9.3c.7.7 1.1 1.6.9 2.5l-1 3 10.8-4-10.7-3.5z" />
|
||||
</svg>
|
||||
</button>
|
||||
</form>
|
||||
</section>
|
||||
@@ -64,4 +69,4 @@
|
||||
<script src="index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user