Skip to content

Commit b38c792

Browse files
committed
Refactor configuration drag handle visibility and update the donation message text
1 parent 15e8c5c commit b38c792

3 files changed

Lines changed: 11 additions & 15 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@
5252
&:active {
5353
cursor: grabbing;
5454
}
55-
56-
&--disabled {
57-
opacity: 0.3;
58-
pointer-events: none;
59-
}
6055
}
6156

6257
&__text {

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ export const Configurations: React.FC<Configurations.Props> = (props) => {
6666
role="button"
6767
>
6868
<div className={styles.configurations__item__left}>
69-
<div
70-
className={cn(styles.configurations__item__left__drag_handle, {
71-
[styles['configurations__item__left__drag_handle--disabled']]:
72-
is_dragging_disabled
73-
})}
74-
onClick={(e) => e.stopPropagation()}
75-
>
76-
<span className="codicon codicon-gripper" />
77-
</div>
69+
{!is_dragging_disabled && (
70+
<div
71+
className={styles.configurations__item__left__drag_handle}
72+
onClick={(e) => e.stopPropagation()}
73+
>
74+
<span className="codicon codicon-gripper" />
75+
</div>
76+
)}
7877
<div className={styles.configurations__item__left__text}>
7978
<span>{configuration.model}</span>
8079
<span>{description}</span>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ export const Donations: React.FC<DonationsProps> = (props) => {
105105
<Scrollable>
106106
<div className={styles.container}>
107107
<div>
108-
Hi there! If you enjoy using Code Web Chat, buying a $3 coffee is a
108+
Hi there! If you enjoy using Code Web Chat, buying a $3 "coffee" is a
109109
great way to show your support for the project.
110+
<br />
111+
Thank you for choosing to donate.
110112
</div>
111113
<div>
112114
{props.is_fetching ? (

0 commit comments

Comments
 (0)