Skip to content

Commit 8f2ff22

Browse files
committed
Remove the hover wave animation from the target switch label
- remove the 'wave' animation on web/api hover
1 parent f7e9337 commit 8f2ff22

2 files changed

Lines changed: 1 addition & 37 deletions

File tree

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -216,24 +216,13 @@
216216
@include accent-font;
217217
font-size: 16px;
218218
padding: 0 4px;
219-
220-
&:hover {
221-
.footer__right__target-switch__label-char {
222-
animation: target-switch-wave 0.5s ease-in-out;
223-
}
224-
}
225219
}
226220

227221
&__label {
228222
padding-top: 1px;
229223
display: flex;
230224
align-items: center;
231225
}
232-
233-
&__label-char {
234-
display: inline-block;
235-
position: relative;
236-
}
237226
}
238227

239228
&__submit {
@@ -363,16 +352,3 @@
363352
}
364353
}
365354
}
366-
367-
@keyframes target-switch-wave {
368-
0%,
369-
100% {
370-
transform: translateY(0);
371-
}
372-
25% {
373-
transform: translateY(-1.5px);
374-
}
375-
75% {
376-
transform: translateY(0);
377-
}
378-
}

‎packages/ui/src/components/editor/common/prompts/PromptField/PromptField.tsx‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -671,19 +671,7 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
671671
<span
672672
className={styles['footer__right__target-switch__label']}
673673
>
674-
{(props.target == TARGET.WEB ? 'WEB' : 'API')
675-
.split('')
676-
.map((char, index) => (
677-
<span
678-
key={index}
679-
className={
680-
styles['footer__right__target-switch__label-char']
681-
}
682-
style={{ animationDelay: `${index * 0.05}s` }}
683-
>
684-
{char}
685-
</span>
686-
))}
674+
{props.target == TARGET.WEB ? 'WEB' : 'API'}
687675
</span>
688676
</button>
689677
</KeycapWrapper>

0 commit comments

Comments
 (0)