Skip to content

Commit 9866337

Browse files
committed
Refactor TokenCounts props and update pointer events for prompt views
1 parent 6d46cbe commit 9866337

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

‎apps/editor/src/views/prompt/frontend/Prompt.module.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
height: 100vh;
99
width: 100%;
1010
pointer-events: none;
11+
12+
> * {
13+
pointer-events: all;
14+
}
1115
}
1216

1317
.content {

‎packages/ui/src/components/editor/prompt/Page/Page.module.scss‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
height: 100%;
55
background-color: var(--vscode-sideBar-background);
66
position: relative;
7-
pointer-events: all;
87
}
98

109
.header {

‎packages/ui/src/components/editor/prompt/TokenCounts/TokenCounts.tsx‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ import { FC } from 'react'
22
import { Checkbox } from '../../common/Checkbox'
33
import styles from './TokenCounts.module.scss'
44

5-
export namespace TokenCounts {
6-
export type Props = {
7-
token_count: {
8-
selected_files: string
9-
prompt: string
10-
}
11-
translations: {
12-
selected_files: string
13-
prompt: string
14-
}
5+
type Props = {
6+
token_count: {
7+
selected_files: string
8+
prompt: string
9+
}
10+
translations: {
11+
selected_files: string
12+
prompt: string
1513
}
1614
}
1715

18-
export const TokenCounts: FC<TokenCounts.Props> = (props) => {
16+
export const TokenCounts: FC<Props> = (props) => {
1917
return (
2018
<div className={styles.container}>
2119
<div className={styles.item}>

0 commit comments

Comments
 (0)