Skip to content

Commit 01767ea

Browse files
authored
style update (#2261)
* style update * better placeholder
1 parent 68c7ac1 commit 01767ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/containers/LlamaAI/components/RecommendedPrompts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const RecommendedPrompts = ({
123123
key={`prompt-category-${category.name}`}
124124
id={`tab-${category.name}`}
125125
tabbable
126-
className="flex items-center justify-center gap-2.5 rounded-lg border border-[#e6e6e6] px-4 py-1 text-[#666] hover:bg-[#f7f7f7] hover:text-black focus-visible:bg-[#f7f7f7] focus-visible:text-black dark:border-[#222324] dark:text-[#919296] dark:hover:bg-[#222324] dark:hover:text-white dark:focus-visible:bg-[#222324] dark:focus-visible:text-white"
126+
className="flex items-center justify-center gap-2.5 rounded-lg border border-[#e6e6e6] px-4 py-1 text-[#666] hover:bg-[#f7f7f7] hover:text-black focus-visible:bg-[#f7f7f7] focus-visible:text-black data-[active-item]:bg-[#f7f7f7] data-[active-item]:text-black dark:border-[#222324] dark:text-[#919296] dark:hover:bg-[#222324] dark:hover:text-white dark:focus-visible:bg-[#222324] dark:focus-visible:text-white dark:data-[active-item]:bg-[#222324] dark:data-[active-item]:text-white"
127127
>
128128
<Icon name={category.icon} height={16} width={16} />
129129
<span>{category.name}</span>

src/containers/LlamaAI/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ export function LlamaAI({ initialSessionId, sharedSession, readOnly = false, sho
10861086
handleStopRequest={handleStopRequest}
10871087
isStreaming={isStreaming}
10881088
initialValue={prompt}
1089-
placeholder="Ask LlamaAI... Type @ to insert a protocol, chain"
1089+
placeholder="Ask LlamaAI... Type @ to add a protocol, chain or stablecoin"
10901090
/>
10911091
<RecommendedPrompts setPrompt={setPrompt} submitPrompt={submitPrompt} isPending={isPending} />
10921092
</>
@@ -1284,7 +1284,7 @@ export function LlamaAI({ initialSessionId, sharedSession, readOnly = false, sho
12841284
handleStopRequest={handleStopRequest}
12851285
isStreaming={isStreaming}
12861286
initialValue={prompt}
1287-
placeholder="Reply to LlamaAI... Type @ to insert a protocol, chain"
1287+
placeholder="Reply to LlamaAI... Type @ to add a protocol, chain or stablecoin"
12881288
/>
12891289
)}
12901290
</div>
@@ -1321,7 +1321,7 @@ const PromptInput = memo(function PromptInput({
13211321

13221322
// Use different placeholder for mobile devices
13231323
const isMobile = useMedia('(max-width: 640px)')
1324-
const mobilePlaceholder = placeholder.replace('Type @ to insert a protocol, chain', '')
1324+
const mobilePlaceholder = placeholder.replace('Type @ to add a protocol, chain or stablecoin', '')
13251325
const finalPlaceholder = isMobile ? mobilePlaceholder : placeholder
13261326

13271327
const combobox = Ariakit.useComboboxStore({ defaultValue: initialValue })
@@ -1693,7 +1693,7 @@ const PromptResponse = ({
16931693
<p className="text-(--error)">{error}</p>
16941694
<button
16951695
onClick={onRetry}
1696-
className="flex items-center justify-center gap-2 rounded-lg border border-(--old-blue) bg-(--old-blue)/12 px-4 py-2 text-(--old-blue) hover:bg-(--old-blue) hover:text-white"
1696+
className="flex w-fit items-center justify-center gap-2 rounded-lg border border-(--old-blue) bg-(--old-blue)/12 px-4 py-2 text-(--old-blue) hover:bg-(--old-blue) hover:text-white"
16971697
>
16981698
<Icon name="repeat" height={16} width={16} />
16991699
Retry

0 commit comments

Comments
 (0)