diff --git a/old-ui/package.json b/old-ui/package.json index 441ca793..a30372bd 100644 --- a/old-ui/package.json +++ b/old-ui/package.json @@ -1,6 +1,6 @@ { "name": "@gaia-project/old-ui", - "version": "1.2.12", + "version": "1.2.13", "scripts": { "serve": "vite --port 5193", "build": "vite build", diff --git a/viewer/package.json b/viewer/package.json index 63bbd386..b5886ff9 100644 --- a/viewer/package.json +++ b/viewer/package.json @@ -1,6 +1,6 @@ { "name": "@gaia-project/viewer", - "version": "5.22.12", + "version": "5.22.13", "description": "Functions to visualize the map and boards for gaia project inside html canvas", "contributors": [ "coyotte508", diff --git a/viewer/src/components/AnalysisHeaderControls.vue b/viewer/src/components/AnalysisHeaderControls.vue index 0437fb71..66f9b908 100644 --- a/viewer/src/components/AnalysisHeaderControls.vue +++ b/viewer/src/components/AnalysisHeaderControls.vue @@ -1,10 +1,10 @@ @@ -143,7 +153,6 @@ export default Vue.extend({ font-variant-numeric: tabular-nums; } -.analysis-controls__summary, .analysis-controls__actions { display: flex; align-items: center; @@ -220,6 +229,16 @@ export default Vue.extend({ .analysis-controls__exit { white-space: nowrap; } +.analysis-controls__exit-icon { + display: none; +} +.analysis-controls__details { + display: contents; +} +.analysis-controls__actions, +.analysis-controls__exit { + order: 1; +} .analysis-controls__btn { padding: 0.25rem 0.6rem; @@ -253,11 +272,34 @@ export default Vue.extend({ } @media (max-width: 767px) { - .analysis-controls__summary { - width: 100%; + .analysis-controls { + margin-left: 0; + } + .analysis-controls__exit-icon { + display: block; + width: 1.25rem; + height: 1.25rem; + fill: none; + stroke: currentColor; + stroke-width: 1.8; + stroke-linecap: round; + stroke-linejoin: round; + } + .analysis-controls__exit-label { + display: none; + } + .analysis-controls__exit { + display: inline-flex; + align-items: center; + justify-content: center; + width: 2.75rem; + min-height: 2.75rem; + padding: 0; } .analysis-controls__info { - margin-left: auto; + width: 2.75rem; + height: 2.75rem; + flex-shrink: 0; } .analysis-controls__actions { gap: 0.25rem; diff --git a/viewer/src/components/Commands.vue b/viewer/src/components/Commands.vue index 28d8f831..797b7946 100644 --- a/viewer/src/components/Commands.vue +++ b/viewer/src/components/Commands.vue @@ -1867,6 +1867,46 @@ $mobile-sticky-actions-max-height: 40vh; #move-buttons.mobile-sticky-actions--sandbox { background: linear-gradient(180deg, var(--ui-panel-gradient-start) 0%, var(--ui-panel-gradient-end) 100%); + + .sticky-bar-title--analysis { + .analysis-controls { + display: contents; + } + .analysis-controls__moves { + font-size: 0.75rem; + max-width: 7rem; + line-height: 1.25; + } + .analysis-controls__exit { + order: 0; + } + .analysis-controls__details { + display: flex; + align-items: center; + flex-wrap: wrap; + flex-basis: 100%; + order: 1; + gap: 0.25rem 0.5rem; + font-size: 0.8rem; + padding-bottom: 0.25rem; + } + .analysis-controls__actions { + margin-left: auto; + } + .analysis-controls__edit:disabled, + .analysis-controls__label, + .analysis-controls__details:not( + :has( + .analysis-controls__changes, + .analysis-controls__shortfall, + .analysis-controls__edit:enabled, + .analysis-controls__btn, + .premove-history-button + ) + ) { + display: none; + } + } } // JS (Commands.vue's ResizeObserver) sets --sticky-bar-height to match the bar's actual