Skip to content

Commit 366da5f

Browse files
dorlugasigalCopilot
andcommitted
fix(touchbar): float lock hint chevron above mic button
Position the swipe-to-lock chevron hint above the button using absolute positioning so it remains visible while the user's finger covers the button during press-and-hold. Increased chevron size (10→14px), added drop-shadow for contrast, and amplified bounce animation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d57201f commit 366da5f

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/frontend/src/components/TouchBar/TouchBar.module.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,12 @@
117117
}
118118

119119
.lockHint {
120-
opacity: 0.6;
120+
position: absolute;
121+
bottom: calc(100% + 6px);
122+
left: 50%;
123+
opacity: 0.7;
121124
animation: lockHintBounce 1.2s ease-in-out infinite;
125+
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
122126
}
123127

124128
@keyframes micDotBlink {
@@ -134,12 +138,12 @@
134138
@keyframes lockHintBounce {
135139
0%,
136140
100% {
137-
transform: translateY(0);
141+
transform: translateX(-50%) translateY(0);
138142
opacity: 0.5;
139143
}
140144
50% {
141-
transform: translateY(-2px);
142-
opacity: 0.9;
145+
transform: translateX(-50%) translateY(-4px);
146+
opacity: 1;
143147
}
144148
}
145149

src/frontend/src/components/TouchBar/TouchBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ export default function TouchBar() {
487487
) : isRecording ? (
488488
<>
489489
<span className={styles.micDot} />
490-
<svg className={styles.lockHint} width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round">
490+
<svg className={styles.lockHint} width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round">
491491
<polyline points="18 15 12 9 6 15" />
492492
</svg>
493493
</>

0 commit comments

Comments
 (0)