diff --git a/view-webapp/src/main/sass/main.scss b/view-webapp/src/main/sass/main.scss index 4b67d03..4836a9f 100644 --- a/view-webapp/src/main/sass/main.scss +++ b/view-webapp/src/main/sass/main.scss @@ -733,6 +733,9 @@ #standings-table { font-size: 0.70rem; } + .title-popup { + display: none; + } } } diff --git a/view-webapp/src/main/sass/tour.scss b/view-webapp/src/main/sass/tour.scss index deaf4cf..6760e1e 100644 --- a/view-webapp/src/main/sass/tour.scss +++ b/view-webapp/src/main/sass/tour.scss @@ -405,6 +405,14 @@ margin-top: 0.2em; } + .bottom-pairing-actions { + margin-top: 0.2em; + display: flex; + flex-flow: row wrap; + justify-content: space-between; + gap: 0.2em; + } + .tables-exclusion { margin-top: 0.2em; } @@ -476,6 +484,19 @@ max-width: 95vw; } + td.game-result { + position: relative; + .title-popup { + position: absolute; + top: 90%; + background: silver; + padding: 4px; + left: 10%; + white-space: nowrap; + z-index: 2; + } + } + .ui.steps { margin-top: 0.2em; .step { diff --git a/view-webapp/src/main/webapp/js/main.js b/view-webapp/src/main/webapp/js/main.js index e88a589..00c24ab 100644 --- a/view-webapp/src/main/webapp/js/main.js +++ b/view-webapp/src/main/webapp/js/main.js @@ -194,6 +194,12 @@ function downloadFile(blob, filename) { document.body.removeChild(link); } +function isTouchDevice() { + return (('ontouchstart' in window) || + (navigator.maxTouchPoints > 0) || + (navigator.msMaxTouchPoints > 0)); +} + onLoad(() => { $('button.close').on('click', e => { close_modal(); @@ -342,4 +348,17 @@ onLoad(() => { let dialog = e.target.closest('.popup'); if (!dialog) close_modal(); }); + + if (isTouchDevice()) { + $("[title]").on('click', e => { + let item = e.target.closest('[title]'); + let title = item.getAttribute('title'); + let popup = item.find('.title-popup') + if (popup.length === 0) { + item.insertAdjacentHTML('beforeend', `${title}`); + } else { + item.removeChild(popup[0]); + } + }); + } }); diff --git a/view-webapp/src/main/webapp/tour-standings.inc.html b/view-webapp/src/main/webapp/tour-standings.inc.html index af5daf3..573fa78 100644 --- a/view-webapp/src/main/webapp/tour-standings.inc.html +++ b/view-webapp/src/main/webapp/tour-standings.inc.html @@ -85,7 +85,7 @@ #elseif($rst.contains('-')) #set($rst = "$rst") #end -