Add BIM model version controls
This commit is contained in:
+214
-1
@@ -1183,6 +1183,55 @@ header {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.inspector-version-heading {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.inspector-version-actions {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.inspector-icon-btn {
|
||||
display: grid;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
border-radius: 12px;
|
||||
background: var(--nodedc-glass-control-bg);
|
||||
box-shadow: var(--nodedc-glass-control-shadow);
|
||||
color: rgba(245, 245, 250, 0.72);
|
||||
cursor: pointer;
|
||||
transition: background 140ms ease, color 140ms ease, opacity 140ms ease;
|
||||
}
|
||||
|
||||
.inspector-icon-btn:hover {
|
||||
color: rgba(245, 245, 250, 0.94);
|
||||
background: var(--nodedc-glass-control-hover);
|
||||
}
|
||||
|
||||
.inspector-icon-btn:disabled {
|
||||
cursor: default;
|
||||
opacity: 0.42;
|
||||
}
|
||||
|
||||
.inspector-icon-btn svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 1.55;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.inspector-color-host {
|
||||
min-width: 0;
|
||||
}
|
||||
@@ -3174,10 +3223,174 @@ body[data-viewer-mode="guest"] .tb-btn:not([data-action="measure"]):not([data-ac
|
||||
body[data-viewer-mode="guest"] #settingsPanel,
|
||||
body[data-viewer-mode="guest"] #templatesPanel,
|
||||
body[data-viewer-mode="guest"] #projectNameSection,
|
||||
body[data-viewer-mode="guest"] #saveProjectSection {
|
||||
body[data-viewer-mode="guest"] #saveProjectSection,
|
||||
body[data-viewer-mode="guest"] #modelVersionUploadButton {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.version-history-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: var(--z-modal, 10000);
|
||||
background: rgba(0, 0, 0, 0.58);
|
||||
backdrop-filter: blur(18px);
|
||||
-webkit-backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.version-history-modal {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
z-index: calc(var(--z-modal, 10000) + 1);
|
||||
display: flex;
|
||||
width: min(96vw, 1280px);
|
||||
max-height: min(76vh, 720px);
|
||||
min-height: 220px;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
border-radius: 22px;
|
||||
background: rgba(20, 20, 22, 0.96);
|
||||
box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.version-history-header {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 18px 20px 14px;
|
||||
}
|
||||
|
||||
.version-history-title {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.version-history-title strong {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
color: rgba(245, 245, 250, 0.94);
|
||||
font-size: 15px;
|
||||
font-weight: 760;
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.version-history-title span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
margin-top: 6px;
|
||||
color: rgba(245, 245, 250, 0.55);
|
||||
font-size: 12px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.version-history-close {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.version-history-body {
|
||||
min-height: 0;
|
||||
flex: 1 1 auto;
|
||||
overflow: auto;
|
||||
padding: 0 16px 16px;
|
||||
}
|
||||
|
||||
.version-history-table {
|
||||
min-width: 980px;
|
||||
overflow: hidden;
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
}
|
||||
|
||||
.version-history-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(260px, 1.6fr) 80px 96px 140px 140px 150px 120px;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-height: 56px;
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.065);
|
||||
color: rgba(245, 245, 250, 0.72);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.version-history-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.version-history-row--head {
|
||||
min-height: 34px;
|
||||
color: rgba(245, 245, 250, 0.52);
|
||||
font-size: 11px;
|
||||
font-weight: 760;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.version-history-file,
|
||||
.version-history-cell {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.version-history-file strong {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
color: rgba(245, 245, 250, 0.82);
|
||||
font-weight: 760;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.version-history-file span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
margin-top: 5px;
|
||||
color: rgba(245, 245, 250, 0.42);
|
||||
font-size: 10px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.version-history-current {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
color: var(--modal-btn-primary, var(--accent));
|
||||
font-size: 10px;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.version-history-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.version-history-empty {
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
padding: 34px 16px;
|
||||
color: rgba(245, 245, 250, 0.56);
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.version-history-modal {
|
||||
width: min(94vw, 560px);
|
||||
max-height: 78vh;
|
||||
}
|
||||
|
||||
.version-history-body {
|
||||
padding: 0 10px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.section-toolbar {
|
||||
position: fixed;
|
||||
left: var(--section-toolbar-left);
|
||||
|
||||
Reference in New Issue
Block a user