Skip to content

Commit f5a9603

Browse files
committed
Remove connection indicator from target switch and refactor dropdown rendering
- remove connectivity status indicator right to 'web' - when prompt is empty, showing disabled items in a dropdown is redundant ├── apps │ └── editor │ └── src │ └── views │ └── prompt │ └── frontend │ └── Main │ └── MainView │ └── MainView.tsx └── packages └── ui └── src └── components └── editor └── common └── prompts ├── PromptField │ ├── PromptField.module.scss │ ├── PromptField.stories.tsx │ ├── PromptField.tsx │ ├── hooks │ │ ├── use-drag-drop.ts │ │ ├── use-dropdown.ts │ │ ├── use-ghost-text.ts │ │ ├── use-handlers │ │ │ ├── handle-copy.ts │ │ │ ├── handle-cut.ts │ │ │ ├── handle-input-change.ts │ │ │ ├── handle-input-click.ts │ │ │ ├── handle-key-down.ts │ │ │ ├── handle-paste.ts │ │ │ ├── handle-submit.ts │ │ │ ├── index.ts │ │ │ ├── types.ts │ │ │ ├── use-handlers.ts │ │ │ └── utils.ts │ │ └── use-keyboard-shortcuts.ts │ └── index.ts ├── Template │ ├── Template.module.scss │ ├── Template.tsx │ └── index.ts └── shared └── symbols ├── caret.ts ├── get-highlighted-text.tsx ├── index.ts ├── position-mapping.ts ├── prompt-symbols.module.scss ├── reconstruct-raw-value.ts └── use-symbol-deletion.ts
1 parent 0e6dab3 commit f5a9603

2 files changed

Lines changed: 451 additions & 465 deletions

File tree

‎packages/ui/src/components/editor/common/prompts/PromptField/PromptField.module.scss‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -226,21 +226,6 @@
226226
display: inline-block;
227227
position: relative;
228228
}
229-
230-
&__indicator {
231-
width: 5px;
232-
height: 5px;
233-
border-radius: 50%;
234-
margin-left: 5px;
235-
236-
&--connected {
237-
background-color: var(--cwc-text-color-green);
238-
}
239-
240-
&--disconnected {
241-
background-color: var(--cwc-text-color-red);
242-
}
243-
}
244229
}
245230

246231
&__submit {

0 commit comments

Comments
 (0)