Skip to content

Commit c9dd1a0

Browse files
committed
fix: improve visibility logic for Hand tool in LockIndicator
- Updated LockIndicator component to conditionally render the Hand tool text based on the isHandToolActive state, enhancing user feedback during interactions.
1 parent 9a33088 commit c9dd1a0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/frontend/src/CustomEmbeddableRenderer.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,11 @@ const LockIndicator = ({ appState }: { appState?: AppState }) => {
148148
return (
149149
<div className={`custom-embed__lock-icon ${visible ? 'visible' : ''}`}>
150150
<Lock size={16} />
151-
<span className={`custom-embed__lock-icon__text ${isHandToolActive ? 'visible' : ''}`}>
152-
(Hand tool)
153-
</span>
151+
{isHandToolActive && (
152+
<span className="custom-embed__lock-icon__text visible">
153+
(Hand tool)
154+
</span>
155+
)}
154156
</div>
155157
);
156158
};

0 commit comments

Comments
 (0)