openvibers/openvibe.live Commits
VOD/clip/paste pagination wraps on phones instead of widening the page
Changes
@@@ -7311,6 +7311,7 @@ body.theme-light .user-dropdown {/* ── Pagination ───────────────────────────────────────────── */.pastes-pagination {display: flex;++ flex-wrap: wrap; /* many page buttons on a phone wrap instead of widening the page */justify-content: center;align-items: center;gap: 12px;@@@ -165,7 +165,8 @@ const pageState = `(() => ({const { cdp, errors } = await openPage(1366);await cdp.send('Page.navigate', { url: BASE + '/' });await sleep(SETTLE);-- const lap = ['/@admin', '/chat', '/dashboard', '/', '/broadcast', '/@admin', '/', '/vods', '/'];++ const ch = process.env.CHANNEL || '/@admin';++ const lap = [ch, '/chat', '/dashboard', '/', '/broadcast', ch, '/', '/vods', '/'];const probes = [];for (let i = 0; i < 3; i++) {for (const p of lap) { await cdp.evaluate(`navigate(${JSON.stringify(p)})`); await sleep(1200); }
@@ -7311,6 +7311,7 @@ body.theme-light .user-dropdown {
@@ -7311,6 +7311,7 @@ body.theme-light .user-dropdown {
/* ── Pagination ───────────────────────────────────────────── */
/* ── Pagination ───────────────────────────────────────────── */
.pastes-pagination {
.pastes-pagination {
display: flex;
display: flex;
+ flex-wrap: wrap; /* many page buttons on a phone wrap instead of widening the page */
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
gap: 12px;
gap: 12px;
@@ -165,7 +165,8 @@ const pageState = `(() => ({
@@ -165,7 +165,8 @@ const pageState = `(() => ({
const { cdp, errors } = await openPage(1366);
const { cdp, errors } = await openPage(1366);
await cdp.send('Page.navigate', { url: BASE + '/' });
await cdp.send('Page.navigate', { url: BASE + '/' });
await sleep(SETTLE);
await sleep(SETTLE);
- const lap = ['/@admin', '/chat', '/dashboard', '/', '/broadcast', '/@admin', '/', '/vods', '/'];
+ const ch = process.env.CHANNEL || '/@admin';
+ const lap = [ch, '/chat', '/dashboard', '/', '/broadcast', ch, '/', '/vods', '/'];
const probes = [];
const probes = [];
for (let i = 0; i < 3; i++) {
for (let i = 0; i < 3; i++) {
for (const p of lap) { await cdp.evaluate(`navigate(${JSON.stringify(p)})`); await sleep(1200); }
for (const p of lap) { await cdp.evaluate(`navigate(${JSON.stringify(p)})`); await sleep(1200); }