@kolbo/mcp 1.104.0 → 1.104.1
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/package.json +1 -1
- package/src/apps/html.js +9 -0
- package/src/apps/theme.js +4 -1
package/package.json
CHANGED
package/src/apps/html.js
CHANGED
|
@@ -179,6 +179,15 @@ function ensurePeek() {
|
|
|
179
179
|
if (it) window.kolbo.openLink(downloadUrl(it.dl || it.url));
|
|
180
180
|
};
|
|
181
181
|
box.onclick = function (e) { if (e.target === box || e.target === el('peek-stage')) closePeek(); };
|
|
182
|
+
// Touch hosts have no arrow keys: a horizontal swipe pages.
|
|
183
|
+
var x0 = null;
|
|
184
|
+
box.addEventListener('touchstart', function (e) { x0 = e.touches[0].clientX; }, { passive: true });
|
|
185
|
+
box.addEventListener('touchend', function (e) {
|
|
186
|
+
if (x0 == null) return;
|
|
187
|
+
var dx = e.changedTouches[0].clientX - x0;
|
|
188
|
+
x0 = null;
|
|
189
|
+
if (Math.abs(dx) > 50) stepPeek(dx < 0 ? 1 : -1);
|
|
190
|
+
}, { passive: true });
|
|
182
191
|
return box;
|
|
183
192
|
}
|
|
184
193
|
function peekAttrs(url, kind, cap) {
|
package/src/apps/theme.js
CHANGED
|
@@ -307,7 +307,10 @@ video::-webkit-media-controls-fullscreen-button { display: none !important; }
|
|
|
307
307
|
display: inline-flex; align-items: center; justify-content: center;
|
|
308
308
|
cursor: pointer; opacity: 0; transition: opacity 150ms var(--smooth), background 150ms var(--smooth);
|
|
309
309
|
}
|
|
310
|
-
.k-media:hover .k-dl, .k-viewer:hover .k-dl, .k-skel:hover .k-dl { opacity: 1; }
|
|
310
|
+
.k-media:hover .k-dl, .k-viewer:hover .k-dl, .k-skel:hover .k-dl, .k-dl:focus-visible { opacity: 1; }
|
|
311
|
+
/* Same contract as .k-tile-acts: on a touch host there is no hover, and the
|
|
312
|
+
hover-only Download / Attach buttons were simply invisible. */
|
|
313
|
+
@media (hover: none) { .k-dl { opacity: 1; } }
|
|
311
314
|
.k-dl:hover { background: var(--brand); border-color: var(--brand); }
|
|
312
315
|
/* Attach-to-prompt sits immediately left of Download (30px button + 8px gap). */
|
|
313
316
|
.k-attach { right: 46px; }
|