openvibers/openvibe.design Commits

The scenes stay in their section: the pick panes sit where the scenes were (#35)

OP OpenVibers committed 14 days ago · 7cb2cf43cb · 1 file, +2 −1

Changes

ddiff --git a/server/views/index.js b/server/views/index.js
iindex 23ed82c..6771197 100644
---- a/server/views/index.js
++++ b/server/views/index.js
@@@ -150,7 +150,8 @@ function home({ themes } = {}) {
head: 'What you can do',
panes: arts.map((a, i) => ({ id: `ds-scene-${i}`, label: sceneTitles[i] || `Scene ${i + 1}`, html: a[0] })),
});
-- body = start > 0 && end > 0 ? body.slice(0, start) + pick + body.slice(end) : body;
++ // The section stays: its scenes are the pick block's panes, and a wide screen shows them as they were.
++ body = start > 0 && end > 0 ? body.slice(0, start) + body.slice(start, body.indexOf('>', start) + 1) + pick + '</section>' + body.slice(end) : body;
}
// The code samples and the questions are the parts a reader rarely needs on a phone.
body = foldAround(body, '>Your theme, in your app</h2>', 'dev', '<h2 id="ds-dev-h">Your theme, in your app</h2>');