openvibers/openvibe.live Commits
Not-found page: a long @name wraps (the full browser smoke saw /@no_such_channel_x9 overflow a 320px phone) (#199)
Changes
@@@ -1179,7 +1179,7 @@ function showNotFound({ title = 'Page not found', message = 'Nothing lives at thif (el) {const box = document.createElement('div');box.className = 'content-container';-- box.style.cssText = 'text-align:center;padding:12vh 16px';++ box.style.cssText = 'text-align:center;padding:12vh 16px;overflow-wrap:anywhere'; // a long @name wraps on a 320px phoneconst h1 = document.createElement('h1');h1.textContent = title;const p = document.createElement('p');
@@ -1179,7 +1179,7 @@ function showNotFound({ title = 'Page not found', message = 'Nothing lives at th
@@ -1179,7 +1179,7 @@ function showNotFound({ title = 'Page not found', message = 'Nothing lives at th
if (el) {
if (el) {
const box = document.createElement('div');
const box = document.createElement('div');
box.className = 'content-container';
box.className = 'content-container';
- box.style.cssText = 'text-align:center;padding:12vh 16px';
+ box.style.cssText = 'text-align:center;padding:12vh 16px;overflow-wrap:anywhere'; // a long @name wraps on a 320px phone
const h1 = document.createElement('h1');
const h1 = document.createElement('h1');
h1.textContent = title;
h1.textContent = title;
const p = document.createElement('p');
const p = document.createElement('p');