-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to mask text in paste dialog (#1764)
Related #1739. This PR optionally allows users to mask the input copy in the paste dialog, for privacy reasons. - We [explored and discussed some UI approaches initially](#1763), and the “redacted text” technique seemed like the best compromise between simplicity and effectiveness. It’s basically struck-through text with a stroke thickness that matches the line height. - I moved down the keyboard hint, to accommodate the toggle button above the dialog. To me, it would feel justified to style the text as [subsidiary](https://github.com/tiny-pilot/tinypilot/blob/22b3e8ec354861b948a09ac0c8a14bac1e0952a1/app/templates/styleguide.html#L76-L77) (i.e., with reduced font size and slightly diminished color). - After clicking the toggle button, we give focus to the text area, because it seems likely that the user wants that. https://github.com/tiny-pilot/tinypilot/assets/83721279/e66827cf-8858-4c82-8ec3-55ab9d87bca6 <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1764"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a> --------- Co-authored-by: Jan Heuermann <[email protected]>
- Loading branch information
1 parent
066fbc8
commit d2c09f9
Showing
2 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters