Commit graph

86 commits

Author SHA1 Message Date
Joshua A. Horton
bddaccb896 chore(web): Merge branch 'beta' into fix/web/lang-menu-unwanted-page-scroll 2022-11-25 15:05:06 +07:00
Joshua A. Horton
8bb07b8ffd fix(web): locks page scroll when scrolling lang menu 2022-11-22 10:38:52 +07:00
Joshua A. Horton
fe52cafc7d chore(web): cleans out fulfilled todo comments 2022-11-21 08:33:37 +07:00
Joshua A. Horton
8cdbe6b79e change(web): globeHint.css -> globe-hint.css 2022-11-18 08:45:07 +07:00
Joshua A. Horton
5f2c884b25 change(web): globeHint has separate stylesheet 2022-11-17 10:42:02 +07:00
Joshua A. Horton
d3c34ad797 chore(web): Web-side cleanup per PR review 2022-11-17 09:58:26 +07:00
Joshua A. Horton
db764158d1 change(web): simpler globe-hint position styling 2022-11-10 10:43:42 +07:00
Joshua A. Horton
83b2aae099 change(web): partial CSS restyle; CSS-based bubble height control 2022-11-04 15:16:53 +07:00
Joshua A. Horton
464da9b0b8 chore(web): minor cleanup, missed change for prior commit 2022-11-04 14:15:50 +07:00
Joshua A. Horton
5f67c79306 feat(web): start of embedded globe hint 2022-11-03 15:16:56 +07:00
jahorton
129911274a fix(android): missed a few CSS properties 2022-06-17 12:56:44 +07:00
jahorton
79abff4dd7 fix(web): android keytip-cap lacked styling; was invisible 2022-06-17 12:35:59 +07:00
Marc Durdin
b3ddf633df fix(web): adjust calc for callout height 2022-03-25 09:10:29 +11:00
Marc Durdin
3858a4c9e5 fix(web): further iOS adjustments 2022-03-24 07:35:28 +11:00
Marc Durdin
adf3fe28c9 fix(web): tweak iOS key preview and longpress dimensions
Adjusts the dimensions to use pixel boundaries to prevent antialiasing
for some of the key preview and longpress popups, and adjusts horizontal
positioning of key preview to center more precisely, for iOS.
2022-03-23 08:23:29 +11:00
Marc Durdin
dde56e6b90 fix(web): adjust positioning for longpress popup
Adjusts positioning calculations for longpress popups and corresponding
styles to make it consistent across all platforms, particularly iOS.
2022-03-17 10:20:19 +11:00
Marc Durdin
86b4b82661 fix(web): key preview position was inconsistent on iOS
Adjusts calculations for key preview and ensures we use box-sizing:
content-box in all circumstances, to make it consistent across all
platforms.
2022-03-17 10:19:10 +11:00
Marc Durdin
24398b4461 fix(web): key square needed vertical align top
On Safari, some keys were vertically misaligned, due to different
default vertical-align.
2022-03-17 10:17:23 +11:00
Marc Durdin
d3136b8860 fix(web): ios popup positioning and style
Fixes #5929.
Fixes #6381.

This fixes four separate issues with the longpress popups and key
previews:

1. The key preview was offset by a couple of pixels (unreported issue).
2. The background 'shim' did not cover the key caps, which caused them
   to look startlingly white when the rest of the background greyed
   down (#5929).
3. The popup menu was incorrectly wrapping to two rows due to sizing
   model mismatches (#6381).
4. The popup menu would be realigned incorrectly for the in-app
   keyboard, when moving it to keep it in the keyboard area (#5929).
2022-03-16 11:24:02 +11:00
Marc Durdin
c9474ceae8 fix(web): remove canvas use for iOS compatibility
Fixes #5831.

iOS 15 has a significant crashing bug whereby use of a canvas element
completely crashes the browser in some contexts. In particular, we have
observed this when using a WKWebView in a keyboard extension without
'Allow Full Access' switched on.

Keyman uses canvas element to draw a nice looking key preview (key tip)
on iPhones. This is a critical issue for Keyman for iPhone. Keyman for
iPad is not affected because the iPad version does not use key previews.

The resolution here is to remove use of the canvas drawing for key tips
and use a simplified pure HTML/CSS shape. I have not conditioned this
fix on platform; I have currently opted to apply this to all platforms.

This issue will be reported to Apple for resolution. The issue applies
so far to iOS 15.0, 15.1.
2021-11-16 16:51:34 +11:00
Marc Durdin
c760fb7464 fix(web): popup positioning
Fixes three issues:

* longpress positioning for inlined OSK views where not all elements
  may be in the offset hierarchy; impacts particularly where an inlined
  OSK may be within a flex-box.

* Tweaks position of keytip, to take into account the offsetTop of the
  key element.

* Inverts test for display of longpress callout, matching Keyman 14.
2021-09-23 08:18:57 +10:00
jahorton
632642b6c2 feat(web): functional touch-subkeys on desktop 2021-09-02 12:30:37 +07:00
jahorton
dfdf0c2e9b fix(web): key preview positioning 2021-09-02 10:39:54 +07:00
jahorton
1226ae8a01 fix(web): hiding key preview 2021-09-02 09:37:10 +07:00
jahorton
a17fc94ae4 fix(web): typo in css file 2021-09-02 09:33:17 +07:00
jahorton
6b248075d6 feat(web): partially-functional inlined OSK! 2021-09-01 15:31:01 +07:00
jahorton
e2f8c58a2b fix(web): banner now uses relative positioning + margin-top 2021-08-23 15:28:04 +07:00
jahorton
164c3fa1db refactor(web): doc-kbd style merger 2021-07-26 15:59:29 +07:00
jahorton
ccdc0af3ed refactor(web): .kmw-key-row CSS merge 2021-07-26 15:59:29 +07:00
jahorton
c034cd1bc1 refactor(web): .kmw-key-square CSS merge 2021-07-26 15:59:28 +07:00
jahorton
ff47e4a172 refactor(web): .kmw-key CSS merge 2021-07-26 15:59:28 +07:00
jahorton
7e15f54f3a refactor(web): padding between rows now consistent 2021-07-26 15:59:27 +07:00
jahorton
25497e5db4 refactor(web): partial row simplification 2021-07-26 15:59:26 +07:00
jahorton
f7349a04b1 refactor(web): partial key style merger 2021-07-26 15:59:24 +07:00
jahorton
2b9433fd4e fix(web): dynamic font downscaling for OSK keys 2021-01-15 13:52:18 +07:00
Matthew Lee
8f3e3283d6 Removed temporary comments 2020-12-21 14:10:35 +11:00
Matthew Lee
bfd5a8e775 More consistent with Android Tablet 2020-12-21 14:10:35 +11:00
Matthew Lee
a511252d91 Bold Draft 2020-12-21 14:10:34 +11:00
jahorton
c8431c38bc feat(web/engine): updates osk font, adds layout codes for new glyphs 2020-11-12 15:46:55 +07:00
Darcy Wong
6f0f3e5b62 chore(web): Update keymanweb-osk.ttf to v. 2.100
In preparation for #2713, this updates the keymanweb-osk.ttf font to [v. 2.100](https://github.com/silnrsi/font-keymanweb-osk/releases/tag/v2.100) which adds the new glyphs silnrsi/font-keymanweb-osk#1
2020-10-28 14:42:05 +07:00
jahorton
359003928a fix(ios): fixes image banner alignment. Fixes #2834 2020-03-17 16:15:34 +07:00
jahorton
fd5484782f chore(web): Merge branch 'beta' into feat/web/2522-suggestion-restyle 2020-02-14 08:07:56 +07:00
jahorton
9374ff92fe change(web): embedded iOS banner spacing 2020-02-13 10:35:43 +07:00
Joshua A. Horton
a5409dc323 fix(web): fixes positioning of native-mode language menu 2020-02-12 10:55:54 +07:00
jahorton
1b22d3ae19 feat(web): restyles prediction banner 2020-02-11 15:14:20 +07:00
jahorton
a1b370177e feat(web): dark mode styling for ios tablets 2020-01-06 09:43:35 +07:00
jahorton
c0ac3166c6 feat(web): Dark mode CSS for ios phone form factors 2020-01-06 09:39:01 +07:00
jahorton
47a2a5ec5f feat(ios): ios-phone predictive banner dark styling 2019-12-20 11:50:09 +07:00
jahorton
966ea1277e docs(web): an important thought re dark mode implementation in web 2019-11-08 16:04:58 +07:00
jahorton
c01fb9570b feat(web): start web dark mode css dev 2019-11-08 15:57:13 +07:00