From 761cb56fac7f69c2bea766b2e9c91c5987fc3baa Mon Sep 17 00:00:00 2001 From: CODEX Date: Wed, 24 Jun 2026 23:16:03 +0300 Subject: [PATCH] Fix BIM version history mobile scrolling --- frontend/dcViewer.css | 26 ++++++++++++++++++++++++-- frontend/index.html | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/frontend/dcViewer.css b/frontend/dcViewer.css index b02e595..db36ff6 100644 --- a/frontend/dcViewer.css +++ b/frontend/dcViewer.css @@ -3270,6 +3270,7 @@ html[data-share-startup="pending"] #loader.hidden { max-height: min(76vh, 720px); min-height: 220px; flex-direction: column; + box-sizing: border-box; overflow: hidden; border-radius: 22px; background: rgba(20, 20, 22, 0.96); @@ -3278,12 +3279,13 @@ html[data-share-startup="pending"] #loader.hidden { } .version-history-header { + position: relative; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; - padding: 18px 20px 14px; + padding: 18px 68px 14px 20px; } .version-history-title { @@ -3312,6 +3314,9 @@ html[data-share-startup="pending"] #loader.hidden { } .version-history-close { + position: absolute; + top: 14px; + right: 16px; flex: 0 0 auto; } @@ -3320,10 +3325,14 @@ html[data-share-startup="pending"] #loader.hidden { flex: 1 1 auto; overflow: auto; padding: 0 16px 16px; + overscroll-behavior: contain; + -webkit-overflow-scrolling: touch; } .version-history-table { - min-width: 980px; + width: max(100%, 1120px); + min-width: 1120px; + box-sizing: border-box; overflow: hidden; border-radius: 16px; background: rgba(255, 255, 255, 0.035); @@ -3334,6 +3343,7 @@ html[data-share-startup="pending"] #loader.hidden { grid-template-columns: minmax(260px, 1.6fr) 80px 96px 140px 140px 150px 120px; align-items: center; gap: 12px; + box-sizing: border-box; min-height: 56px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.065); @@ -3394,6 +3404,10 @@ html[data-share-startup="pending"] #loader.hidden { gap: 6px; } +.version-history-actions .inspector-icon-btn { + flex: 0 0 32px; +} + .version-history-empty { border-radius: 16px; background: rgba(255, 255, 255, 0.035); @@ -3409,6 +3423,14 @@ html[data-share-startup="pending"] #loader.hidden { max-height: 78vh; } + .version-history-header { + padding: 18px 62px 14px 16px; + } + + .version-history-close { + right: 14px; + } + .version-history-body { padding: 0 10px 12px; } diff --git a/frontend/index.html b/frontend/index.html index 3541da0..bdef6b4 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -231,7 +231,7 @@ - +