@agent-link/server 0.1.104 → 0.1.105

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/index.html +4 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-link/server",
3
- "version": "0.1.104",
3
+ "version": "0.1.105",
4
4
  "description": "AgentLink relay server",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/index.html CHANGED
@@ -22,18 +22,15 @@
22
22
  // iPad: track visualViewport to handle keyboard accessory bar
23
23
  (function() {
24
24
  if (!window.visualViewport) return;
25
- function onViewportChange() {
25
+ function onViewportResize() {
26
26
  var vv = window.visualViewport;
27
27
  var app = document.getElementById('app');
28
28
  if (!app) return;
29
- // When keyboard accessory bar appears, visual viewport shrinks
30
- // and may scroll. Adjust #app to stay within visible area.
31
- app.style.top = vv.offsetTop + 'px';
29
+ // When keyboard accessory bar appears, visual viewport shrinks.
30
+ // Adjust #app to stay within visible area.
32
31
  app.style.height = vv.height + 'px';
33
- app.style.bottom = 'auto';
34
32
  }
35
- window.visualViewport.addEventListener('resize', onViewportChange);
36
- window.visualViewport.addEventListener('scroll', onViewportChange);
33
+ window.visualViewport.addEventListener('resize', onViewportResize);
37
34
  })();
38
35
  </script>
39
36
  <script src="/vendor/vue.global.prod.js"></script>