Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

ui: improve prompt input

Faisal Amir116319e72cf5
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx
index f9d5027c1..7714ead3c 100644
--- a/web-app/src/containers/ChatInput.tsx
+++ b/web-app/src/containers/ChatInput.tsx
@@ -1119,7 +1119,7 @@ const ChatInput = ({
<div className="relative">
<div
className={cn(
- 'relative overflow-hidden p-[2px] rounded-lg',
+ 'relative overflow-hidden p-[2px] rounded-3xl',
Boolean(streamingContent) && 'opacity-70'
)}
>
@@ -1137,7 +1137,7 @@ const ChatInput = ({
<div
className={cn(
- 'relative z-20 px-0 pb-10 border border-main-view-fg/5 rounded-lg text-main-view-fg bg-main-view',
+ 'relative z-20 px-0 pb-10 border border-border rounded-3xl text-main-view-fg bg-main-view',
isFocused && 'ring-1 ring-main-view-fg/10',
isDragOver && 'ring-2 ring-accent border-accent'
)}
@@ -1165,7 +1165,7 @@ const ChatInput = ({
<TooltipTrigger asChild>
<div
className={cn(
- 'relative border border-main-view-fg/5 rounded-lg size-14 overflow-hidden bg-main-view/40',
+ 'relative border border-main-view-fg/5 rounded-3xl size-14 overflow-hidden bg-main-view/40',
'flex items-center justify-center'
)}
>
@@ -1566,6 +1566,7 @@ const ChatInput = ({
disabled={!prompt.trim() || ingestingAny}
data-test-id="send-message-button"
onClick={() => handleSendMessage(prompt)}
+ className='rounded-full mr-0.5 text-black'
>
{streamingContent || ingestingAny ? (
<span className="animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full" />
diff --git a/web-app/src/routes/threads/$threadId.tsx b/web-app/src/routes/threads/$threadId.tsx
index cc0d45c07..e06e5b755 100644
--- a/web-app/src/routes/threads/$threadId.tsx
+++ b/web-app/src/routes/threads/$threadId.tsx
@@ -316,7 +316,7 @@ function ThreadDetail() {
</div>
<div
className={cn(
- 'mx-auto pt-2 pb-3 shrink-0 relative',
+ 'mx-auto pt-2 pb-4 shrink-0 relative',
// Responsive padding and width
isMobile ? 'px-3' : 'px-2',
// Width: mobile/small screens or non-compact always full, compact desktop uses constrained