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