Skip to content

Commit 972eade

Browse files
committed
Update chat input styling to use a 12px border radius and restrict Perplexity input focus to mobile views
1 parent 88b082e commit 972eade

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/browser/src/content-scripts/send-prompt-content-script/chatbots/perplexity.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import {
1111
export const perplexity: Chatbot = {
1212
wait_until_ready: async () => {
1313
await new Promise((resolve) => setTimeout(resolve, 500))
14-
;(document.querySelector('[contenteditable="true"]') as any)?.click()
14+
if (window.innerWidth <= 768) {
15+
;(document.querySelector('[contenteditable="true"]') as any)?.click()
16+
}
1517
},
1618
set_options: async (options?: string[]) => {
1719
if (!options) return

‎packages/ui/src/components/editor/panel/ChatInput/ChatInput.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
&__inner {
66
display: flex;
77
flex-direction: column;
8-
border-radius: var(--border-radius-5px);
8+
border-radius: var(--border-radius-12px);
99
background-color: var(--vscode-input-background);
1010
cursor: text;
1111
border: 1px solid var(--vscode-commandCenter-inactiveBorder);

‎packages/ui/src/styles/foundation/_variables.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
--border-radius-6px: 6px;
3434
--border-radius-8px: 8px;
3535
--border-radius-10px: 10px;
36+
--border-radius-12px: 12px;
3637
--border-radius-999px: 999px;
3738

3839
--font-weight-500: 500;

0 commit comments

Comments
 (0)