Skip to content

Commit c0e9d73

Browse files
authored
Merge pull request stackblitz-labs#708 from SujalXplores/fix/ui-enhancements
Fix/UI enhancements
2 parents 4d8a94d + bbb5a8e commit c0e9d73

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

app/components/chat/BaseChat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
283283
<div ref={scrollRef} className="flex flex-col lg:flex-row overflow-y-auto w-full h-full">
284284
<div className={classNames(styles.Chat, 'flex flex-col flex-grow lg:min-w-[var(--chat-min-width)] h-full')}>
285285
{!chatStarted && (
286-
<div id="intro" className="mt-[26vh] max-w-chat mx-auto text-center px-4 lg:px-0">
286+
<div id="intro" className="mt-[16vh] max-w-chat mx-auto text-center px-4 lg:px-0">
287287
<h1 className="text-3xl lg:text-6xl font-bold text-bolt-elements-textPrimary mb-4 animate-fade-in">
288288
Where ideas begin
289289
</h1>
@@ -384,7 +384,7 @@ export const BaseChat = React.forwardRef<HTMLDivElement, BaseChatProps>(
384384
<textarea
385385
ref={textareaRef}
386386
className={classNames(
387-
'w-full pl-4 pt-4 pr-16 focus:outline-none resize-none text-bolt-elements-textPrimary placeholder-bolt-elements-textTertiary bg-transparent text-sm',
387+
'w-full pl-4 pt-4 pr-16 outline-none resize-none text-bolt-elements-textPrimary placeholder-bolt-elements-textTertiary bg-transparent text-sm',
388388
'transition-all duration-200',
389389
'hover:border-bolt-elements-focus',
390390
)}

app/components/chat/GitCloneButton.tsx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import ignore from 'ignore';
22
import { useGit } from '~/lib/hooks/useGit';
33
import type { Message } from 'ai';
4-
import WithTooltip from '~/components/ui/Tooltip';
54
import { detectProjectCommands, createCommandsMessage } from '~/utils/projectCommands';
65
import { generateId } from '~/utils/fileUtils';
76

@@ -73,7 +72,7 @@ export default function GitCloneButton({ importChat }: GitCloneButtonProps) {
7372
const filesMessage: Message = {
7473
role: 'assistant',
7574
content: `Cloning the repo ${repoUrl} into ${workdir}
76-
<boltArtifact id="imported-files" title="Git Cloned Files" type="bundled">
75+
<boltArtifact id="imported-files" title="Git Cloned Files" type="bundled">
7776
${fileContents
7877
.map(
7978
(file) =>
@@ -99,17 +98,13 @@ ${file.content}
9998
};
10099

101100
return (
102-
<WithTooltip tooltip="Clone A Git Repo">
103-
<button
104-
onClick={(e) => {
105-
onClick(e);
106-
}}
107-
title="Clone A Git Repo"
108-
className="px-4 py-2 rounded-lg border border-bolt-elements-borderColor bg-bolt-elements-prompt-background text-bolt-elements-textPrimary hover:bg-bolt-elements-background-depth-3 transition-all flex items-center gap-2"
109-
>
110-
<span className="i-ph:git-branch" />
111-
Clone A Git Repo
112-
</button>
113-
</WithTooltip>
101+
<button
102+
onClick={onClick}
103+
title="Clone a Git Repo"
104+
className="px-4 py-2 rounded-lg border border-bolt-elements-borderColor bg-bolt-elements-prompt-background text-bolt-elements-textPrimary hover:bg-bolt-elements-background-depth-3 transition-all flex items-center gap-2"
105+
>
106+
<span className="i-ph:git-branch" />
107+
Clone a Git Repo
108+
</button>
114109
);
115110
}

app/components/chat/chatExportAndImport/ImportButtons.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Message } from 'ai';
22
import { toast } from 'react-toastify';
3-
import React from 'react';
43
import { ImportFolderButton } from '~/components/chat/ImportFolderButton';
54

65
export function ImportButtons(importChat: ((description: string, messages: Message[]) => Promise<void>) | undefined) {

0 commit comments

Comments
 (0)