@bobfrankston/rmfmail 1.2.41 → 1.2.46
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.
- package/client/app.bundle.js +6 -1
- package/client/app.bundle.js.map +2 -2
- package/client/components/message-list.js +20 -1
- package/client/components/message-list.js.map +1 -1
- package/client/components/message-list.ts +19 -1
- package/package.json +5 -5
- package/packages/mailx-imap/index.d.ts +21 -1
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +132 -88
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +144 -85
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- package/packages/mailx-service/reconciler.d.ts.map +1 -1
- package/packages/mailx-service/reconciler.js +6 -1
- package/packages/mailx-service/reconciler.js.map +1 -1
- package/packages/mailx-service/reconciler.ts +6 -1
- package/packages/mailx-settings/docs/instance-model-plan.md +75 -0
- package/packages/mailx-settings/package.json +1 -1
package/client/app.bundle.js
CHANGED
|
@@ -2811,6 +2811,7 @@ function currentViewKey() {
|
|
|
2811
2811
|
function withScrollAnchor(body, doRender) {
|
|
2812
2812
|
const scrollTop = body.scrollTop;
|
|
2813
2813
|
const viewportH = body.clientHeight;
|
|
2814
|
+
const wasAtTop = scrollTop < 4;
|
|
2814
2815
|
let anchorUuid = "";
|
|
2815
2816
|
let anchorOffsetWithinViewport = 0;
|
|
2816
2817
|
const selected = body.querySelector(".ml-row.selected");
|
|
@@ -2841,7 +2842,11 @@ function withScrollAnchor(body, doRender) {
|
|
|
2841
2842
|
return;
|
|
2842
2843
|
const after = body.querySelector(`.ml-row[data-uuid="${CSS.escape(anchorUuid)}"]`);
|
|
2843
2844
|
if (after) {
|
|
2844
|
-
|
|
2845
|
+
if (wasAtTop && after.offsetTop < viewportH - after.offsetHeight) {
|
|
2846
|
+
body.scrollTop = 0;
|
|
2847
|
+
} else {
|
|
2848
|
+
body.scrollTop = after.offsetTop - anchorOffsetWithinViewport;
|
|
2849
|
+
}
|
|
2845
2850
|
}
|
|
2846
2851
|
}
|
|
2847
2852
|
function rememberPosition() {
|