design: floating input container like DeepSeek
This commit is contained in:
+32
-32
@@ -434,49 +434,50 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.75rem 1rem;
|
margin: 0.5rem;
|
||||||
padding-left: max(1rem, env(safe-area-inset-left));
|
margin-left: max(0.5rem, env(safe-area-inset-left));
|
||||||
padding-right: max(1rem, env(safe-area-inset-right));
|
margin-right: max(0.5rem, env(safe-area-inset-right));
|
||||||
padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
|
margin-bottom: max(0.5rem, env(safe-area-inset-bottom));
|
||||||
background: #0a0a0a;
|
padding: 0.5rem;
|
||||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
background: #1a1a1a;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
|
border-radius: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-container textarea {
|
.input-container textarea {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 40px;
|
min-height: 36px;
|
||||||
max-height: 120px;
|
max-height: 120px;
|
||||||
padding: 0.625rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
background: #1a1a1a;
|
background: transparent;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
border: none;
|
||||||
border-radius: 20px;
|
border-radius: 18px;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
resize: none;
|
resize: none;
|
||||||
transition: border-color 0.2s, height 0.1s ease;
|
transition: height 0.1s ease;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-container textarea:focus {
|
.input-container textarea:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: rgba(37, 99, 235, 0.5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-container textarea::placeholder {
|
.input-container textarea::placeholder {
|
||||||
color: #555;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.send-btn {
|
.send-btn {
|
||||||
width: 40px;
|
width: 36px;
|
||||||
min-width: 40px;
|
min-width: 36px;
|
||||||
height: 40px;
|
height: 36px;
|
||||||
background: #2563eb;
|
background: #2563eb;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 1rem;
|
font-size: 0.95rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
@@ -487,23 +488,22 @@
|
|||||||
|
|
||||||
.send-btn:hover:not(:disabled) {
|
.send-btn:hover:not(:disabled) {
|
||||||
background: #1d4ed8;
|
background: #1d4ed8;
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.send-btn:disabled {
|
.send-btn:disabled {
|
||||||
opacity: 0.4;
|
opacity: 0.3;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stop-btn {
|
.stop-btn {
|
||||||
width: 40px;
|
width: 36px;
|
||||||
min-width: 40px;
|
min-width: 36px;
|
||||||
height: 40px;
|
height: 36px;
|
||||||
background: #dc2626;
|
background: #dc2626;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 1rem;
|
font-size: 0.95rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
@@ -514,7 +514,6 @@
|
|||||||
|
|
||||||
.stop-btn:hover {
|
.stop-btn:hover {
|
||||||
background: #b91c1c;
|
background: #b91c1c;
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Streaming message animation */
|
/* Streaming message animation */
|
||||||
@@ -589,21 +588,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input-container {
|
.input-container {
|
||||||
padding: 0.5rem 0.75rem;
|
margin: 0.375rem;
|
||||||
padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
|
margin-bottom: max(0.375rem, env(safe-area-inset-bottom));
|
||||||
|
padding: 0.375rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-container textarea {
|
.input-container textarea {
|
||||||
min-height: 36px;
|
min-height: 32px;
|
||||||
padding: 0.5rem 0.875rem;
|
padding: 0.4rem 0.875rem;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.send-btn,
|
.send-btn,
|
||||||
.stop-btn {
|
.stop-btn {
|
||||||
width: 36px;
|
width: 32px;
|
||||||
min-width: 36px;
|
min-width: 32px;
|
||||||
height: 36px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-selector {
|
.session-selector {
|
||||||
|
|||||||
Reference in New Issue
Block a user