testimonials 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/testimonials/version.rb +1 -1
- data/lib/testimonials/widget.js +16 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 309373c0011231499172ab20a6b84e8d399e396500bab2a084574868176592ab
|
|
4
|
+
data.tar.gz: 838980f3fab1d43dace344a2a37d82a25c87d670a16d16b8e2303516c5735c91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 239c0d79748f8424c2e2fe063fcd541430e06fce52a7ae7b9bc18b35141c71889278c89a1fa9a602b3ae8a22675985d7fd12cc7dbb417e8aa1b5e3625046b27d
|
|
7
|
+
data.tar.gz: c407a4d0f78f5690aa8b1694236023869211a526e07cc1221949b6994fe73d09058b194739e654f8ecfe0b04a5d1541455dd5d203b6ecb40c4adc3f61360ce68
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
- The widget dialog goes full-screen on mobile (no bottom sheet, no animations):
|
|
6
|
+
inputs render at 16px to prevent iOS focus-zoom, the action row gains
|
|
7
|
+
safe-area padding, and the dialog's scroll is contained (no page rubber-banding).
|
|
8
|
+
|
|
3
9
|
## 0.1.1
|
|
4
10
|
|
|
5
11
|
- Repository renamed to [yshmarov/testimonials](https://github.com/yshmarov/testimonials);
|
data/lib/testimonials/version.rb
CHANGED
data/lib/testimonials/widget.js
CHANGED
|
@@ -1035,6 +1035,22 @@
|
|
|
1035
1035
|
".tml-record-label,.tml-chip-remove{color:#3b82f6}",
|
|
1036
1036
|
".tml-chip{background:rgba(59,130,246,.12)}",
|
|
1037
1037
|
".tml-hint,.tml-nps-legend,.tml-record-hint{color:#9aa2ab}",
|
|
1038
|
+
"}",
|
|
1039
|
+
// The dialog is the scrollable region; keep its scroll from chaining
|
|
1040
|
+
// into the host page (rubber-banding through the backdrop on touch).
|
|
1041
|
+
"#tml-dialog{overscroll-behavior:contain}",
|
|
1042
|
+
// Full-screen on mobile — no bottom sheet, no animation. Placed last,
|
|
1043
|
+
// with selectors at least as specific as the desktop rules above, so
|
|
1044
|
+
// these declarations win the cascade at equal specificity.
|
|
1045
|
+
"@media (max-width:480px){",
|
|
1046
|
+
"#tml-overlay{padding:0;align-items:stretch;justify-content:stretch}",
|
|
1047
|
+
"#tml-dialog{left:0;right:0;top:0;bottom:0;width:100%;max-width:none;",
|
|
1048
|
+
"height:100vh;height:100dvh;max-height:100dvh;border-radius:0;margin:0}",
|
|
1049
|
+
// 16px stops iOS Safari's auto-zoom when a field gets focus.
|
|
1050
|
+
"#tml-dialog textarea,#tml-dialog input[type=text],#tml-dialog input[type=email],#tml-dialog select{font-size:16px}",
|
|
1051
|
+
// The action row has no padding of its own; give it the home-indicator
|
|
1052
|
+
// safe area so Submit/Cancel never sit under the bar.
|
|
1053
|
+
"#tml-dialog .tml-actions{padding-bottom:calc(0px + env(safe-area-inset-bottom))}",
|
|
1038
1054
|
"}"
|
|
1039
1055
|
].join("");
|
|
1040
1056
|
var style = document.createElement("style");
|