bunnyquery 1.8.12 → 1.8.14
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/bunnyquery.css +17 -0
- package/bunnyquery.js +509 -91
- package/dist/engine.cjs +447 -52
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.mts +482 -212
- package/dist/engine.d.ts +482 -212
- package/dist/engine.mjs +443 -53
- package/dist/engine.mjs.map +1 -1
- package/package.json +3 -2
- package/src/engine/history.ts +64 -0
- package/src/engine/image_preview.ts +0 -0
- package/src/engine/index.ts +17 -0
- package/src/engine/link_markup.ts +9 -1
- package/src/engine/links.ts +31 -3
- package/src/engine/scroll_anchor.ts +367 -0
- package/src/engine/session.ts +302 -60
- package/src/widget.css +17 -0
package/bunnyquery.css
CHANGED
|
@@ -650,6 +650,14 @@
|
|
|
650
650
|
position: relative;
|
|
651
651
|
overflow-y: auto;
|
|
652
652
|
overflow-x: hidden;
|
|
653
|
+
/* Exactly ONE compensator. Blink and Gecko run their own scroll anchoring on
|
|
654
|
+
this scroller, and it fires at the very layout the JS anchor's absorb()
|
|
655
|
+
forces when it reads offsetHeight - so an image growing above the fold was
|
|
656
|
+
corrected by the browser and then paid for a second time in JS. Measured on
|
|
657
|
+
one background re-render: 6224px of jump with both live, 0 with this.
|
|
658
|
+
Deleting absorb() instead is not an option (15000px of drift on WebKit,
|
|
659
|
+
which has no native anchoring at all). See engine/scroll_anchor.ts. */
|
|
660
|
+
overflow-anchor: none;
|
|
653
661
|
flex: 1;
|
|
654
662
|
min-height: 0;
|
|
655
663
|
padding: 0.25rem 1.25rem;
|
|
@@ -1018,6 +1026,15 @@
|
|
|
1018
1026
|
.bq-input-row { flex-direction: column; padding: 0.65rem 0.75rem 0.75rem; }
|
|
1019
1027
|
.bq-input-wrap { width: 100%; flex: 0 0 auto; }
|
|
1020
1028
|
.bq-input-row .btn { width: 100%; }
|
|
1029
|
+
/* `flex-basis: 100%` on these two means FULL WIDTH only while the row is a
|
|
1030
|
+
row. The line above flips it to a column, where the main axis is vertical
|
|
1031
|
+
and the same declaration claims the container's full HEIGHT: the chips
|
|
1032
|
+
then fill the column, and since the row still wraps, the input and Send
|
|
1033
|
+
wrap into a SECOND COLUMN, off to the right of the screen. That is the
|
|
1034
|
+
attachment bug, and it is why it never appeared on the dashboard, whose
|
|
1035
|
+
own mobile block already carries these two lines (agent.vue). */
|
|
1036
|
+
.bq-attachments { flex-basis: auto; width: 100%; }
|
|
1037
|
+
.bq-attachment-warning { flex-basis: auto; width: 100%; }
|
|
1021
1038
|
.bq-bubble { max-width: 100%; }
|
|
1022
1039
|
.bq-page { padding: 2rem 1.25rem; }
|
|
1023
1040
|
.bq-section-title { padding: 0.75rem; }
|