Skip to content

Commit 5e765e8

Browse files
committed
Refactor the hidden text item component and standardize "Pause for file upload" to "Pause for media upload" across the UI and VS Code backend
1 parent c253619 commit 5e765e8

4 files changed

Lines changed: 5 additions & 16 deletions

File tree

‎packages/ui/src/components/editor/panel/Presets/Presets.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export const Presets: React.FC<Presets.Props> = (props) => {
224224
/>
225225
<IconButton
226226
codicon_icon="file-media"
227-
title="Pause for file upload"
227+
title="Pause for media upload"
228228
on_click={(e) => {
229229
e.stopPropagation()
230230
props.on_preset_click(preset.name, true)
@@ -773,7 +773,7 @@ export const Presets: React.FC<Presets.Props> = (props) => {
773773
{preset.chatbot && (
774774
<IconButton
775775
codicon_icon="file-media"
776-
title="Pause for file upload"
776+
title="Pause for media upload"
777777
on_click={(e) => {
778778
e.stopPropagation()
779779
props.on_preset_click(preset.name, true)

‎packages/ui/src/components/editor/panel/ResponsePreview/components/TextItem.module.scss‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,11 @@
4646
}
4747

4848
&__line {
49-
flex-grow: 1;
49+
flex: 1;
5050
height: 1px;
5151
background-color: var(--cwc-border-color-dimmed);
5252
}
5353

54-
&__icon {
55-
position: absolute;
56-
left: 50%;
57-
transform: translateX(-50%);
58-
background-color: var(--vscode-sideBar-background);
59-
padding: 0 var(--padding-8px);
60-
}
61-
6254
&__tokens {
6355
font-size: var(--font-size-12px);
6456
color: var(--cwc-text-color-dimmed);

‎packages/ui/src/components/editor/panel/ResponsePreview/components/TextItem.tsx‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ export const TextItem: FC<Props> = (props) => {
3232
title={props.content}
3333
>
3434
<div className={styles.hidden__line} />
35-
<div className={styles.hidden__icon}>
36-
<IconButton codicon_icon="add" />
37-
</div>
3835
<span className={styles.hidden__tokens}>
3936
{Math.floor(props.content.length * 0.25) || 1}
4037
</span>

‎packages/vscode/src/views/panel/backend/message-handlers/handle-send-prompt.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ async function show_presets_in_group_quick_pick(params: {
286286

287287
const run_without_submission_button: vscode.QuickInputButton = {
288288
iconPath: new vscode.ThemeIcon('file-media'),
289-
tooltip: 'Pause for file upload'
289+
tooltip: 'Pause for media upload'
290290
}
291291

292292
quick_pick.buttons = [vscode.QuickInputButtons.Back, run_group_button]
@@ -545,7 +545,7 @@ async function show_preset_quick_pick(params: {
545545

546546
const run_without_submission_button: vscode.QuickInputButton = {
547547
iconPath: new vscode.ThemeIcon('file-media'),
548-
tooltip: 'Pause for file upload'
548+
tooltip: 'Pause for media upload'
549549
}
550550

551551
const quick_pick = vscode.window.createQuickPick<

0 commit comments

Comments
 (0)