Add BIM model comments
This commit is contained in:
@@ -62,6 +62,18 @@
|
||||
--section-plane-alpha: 0.32;
|
||||
--section-plane-edge: #0d0d0d;
|
||||
--section-plane-edge-alpha: 0.8;
|
||||
--comment-target-active: #c4ff67;
|
||||
--comment-target-active-alpha: 1;
|
||||
--comment-target-active-size: 30px;
|
||||
--comment-target-passive: #f5f5fa;
|
||||
--comment-target-passive-alpha: 0.58;
|
||||
--comment-target-passive-size: 22px;
|
||||
--nodedc-header-dropdown-bg: rgba(11, 11, 14, 0.94);
|
||||
--nodedc-header-dropdown-item-bg: rgba(42, 42, 46, 0.74);
|
||||
--nodedc-header-dropdown-item-hover-bg: rgba(42, 42, 46, 0.86);
|
||||
--nodedc-header-dropdown-item-active-bg: rgba(47, 47, 52, 0.96);
|
||||
--nodedc-header-dropdown-item-active-color: #ffffff;
|
||||
--text-primary: rgba(255, 255, 255, 0.96);
|
||||
--section-toolbar-left: calc(12px + var(--tb-size, 25px) + var(--tb-gap, 10px));
|
||||
--section-toolbar-bottom: 123px;
|
||||
--nodedc-glass-control-bg: var(--modal-element);
|
||||
@@ -507,6 +519,273 @@ header {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.comments-panel {
|
||||
position: fixed;
|
||||
--env-control-h: 46px;
|
||||
--env-button-radius: 17px;
|
||||
--env-pill-radius: 999px;
|
||||
--env-glass-control-bg: var(--nodedc-glass-control-bg);
|
||||
--env-glass-control-hover: var(--nodedc-glass-control-hover);
|
||||
--env-glass-control-shadow: var(--nodedc-glass-control-shadow);
|
||||
top: 170px;
|
||||
left: 52px;
|
||||
bottom: 12px;
|
||||
width: 320px;
|
||||
max-height: calc(100vh - 90px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background: color-mix(in srgb, var(--modal-bg) var(--modal-bg-alpha, 100%), transparent);
|
||||
border: 1px solid var(--modal-border);
|
||||
border-radius: var(--modal-radius, 16px);
|
||||
box-shadow: var(--shadow);
|
||||
z-index: 11;
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.comments-panel.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comments-panel-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 5;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) var(--env-control-h);
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: calc(var(--env-control-h) + 20px);
|
||||
padding: 12px 12px 8px 16px;
|
||||
background: color-mix(in srgb, var(--modal-bg) var(--modal-bg-alpha, 100%), transparent);
|
||||
border-radius: var(--modal-radius, 16px) var(--modal-radius, 16px) 0 0;
|
||||
color: var(--text);
|
||||
font-weight: 700;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.comments-panel-header:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.comments-panel-header h3 {
|
||||
margin: 0;
|
||||
min-width: 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.comments-panel-body {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 0 12px 12px;
|
||||
}
|
||||
|
||||
.comments-list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.comments-empty,
|
||||
.comments-loading {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
padding: 10px 4px;
|
||||
}
|
||||
|
||||
.comment-list-item {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
width: 100%;
|
||||
min-height: 58px;
|
||||
padding: 10px;
|
||||
border: 1px solid var(--modal-border);
|
||||
border-radius: var(--modal-radius, 10px);
|
||||
background: color-mix(in srgb, var(--modal-focus) var(--modal-focus-alpha, 100%), transparent);
|
||||
color: var(--text);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
|
||||
}
|
||||
|
||||
.comment-list-item:hover,
|
||||
.comment-list-item.active {
|
||||
border-color: color-mix(in srgb, var(--comment-target-active) 55%, var(--modal-border));
|
||||
background: color-mix(in srgb, var(--comment-target-active) 16%, var(--modal-focus));
|
||||
}
|
||||
|
||||
.comment-list-item:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.comment-list-title {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: rgba(245, 245, 250, 0.94);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1.25;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.comment-list-body {
|
||||
display: -webkit-box;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: rgba(245, 245, 250, 0.66);
|
||||
font-size: 11px;
|
||||
line-height: 1.35;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
.comment-list-meta {
|
||||
color: rgba(245, 245, 250, 0.48);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.comments-restore-tray {
|
||||
position: fixed;
|
||||
left: 52px;
|
||||
bottom: 12px;
|
||||
width: 320px;
|
||||
padding: 0 14px;
|
||||
z-index: 12;
|
||||
box-sizing: border-box;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.comments-restore-tray[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comments-restore-tray .inspector-restore-button {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.comment-targets-layer {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 18;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.comment-targets-layer.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comment-target {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: var(--comment-target-passive-size);
|
||||
height: var(--comment-target-passive-size);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--comment-target-passive);
|
||||
opacity: var(--comment-target-passive-alpha);
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
transform: translate(-50%, -50%);
|
||||
transition: color 160ms ease, height 180ms ease, opacity 160ms ease, width 180ms ease;
|
||||
}
|
||||
|
||||
.comment-target.active {
|
||||
width: var(--comment-target-active-size);
|
||||
height: var(--comment-target-active-size);
|
||||
color: var(--comment-target-active);
|
||||
opacity: var(--comment-target-active-alpha);
|
||||
}
|
||||
|
||||
.comment-target svg {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 1.7;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.48));
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.comment-target:focus,
|
||||
.comment-target:focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.nodedc-dropdown-surface {
|
||||
position: fixed;
|
||||
z-index: 30041;
|
||||
padding: 0.65rem;
|
||||
border: 0;
|
||||
border-radius: 1.25rem;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012)),
|
||||
var(--nodedc-header-dropdown-bg, rgba(11, 11, 14, 0.94));
|
||||
box-shadow: none;
|
||||
backdrop-filter: blur(44px) saturate(1.12);
|
||||
-webkit-backdrop-filter: blur(44px) saturate(1.12);
|
||||
}
|
||||
|
||||
.nodedc-dropdown-surface.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bim-context-menu {
|
||||
display: grid;
|
||||
gap: 0.18rem;
|
||||
min-width: 13.75rem;
|
||||
max-width: min(18rem, calc(100vw - 24px));
|
||||
}
|
||||
|
||||
.nodedc-dropdown-option {
|
||||
display: grid;
|
||||
grid-template-columns: 18px minmax(0, 1fr);
|
||||
min-height: 2.45rem;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
border: 0;
|
||||
border-radius: 0.92rem;
|
||||
background: var(--nodedc-header-dropdown-item-bg, var(--nodedc-glass-control-bg, transparent));
|
||||
color: rgba(255, 255, 255, 0.68);
|
||||
padding: 0.38rem 0.62rem;
|
||||
text-align: left;
|
||||
font: inherit;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 760;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nodedc-dropdown-option svg {
|
||||
display: block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 1.7;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
.nodedc-dropdown-option:hover,
|
||||
.nodedc-dropdown-option:focus-visible {
|
||||
background: var(--nodedc-header-dropdown-item-hover-bg, var(--nodedc-glass-control-hover, rgba(255, 255, 255, 0.075)));
|
||||
color: var(--text-primary);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.panel-section {
|
||||
background: transparent;
|
||||
border: none;
|
||||
@@ -1162,6 +1441,10 @@ header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#commentModalBackdrop {
|
||||
z-index: 30045;
|
||||
}
|
||||
|
||||
.templates-panel.measurement-modal {
|
||||
left: var(--measure-left, var(--templates-left, 72px));
|
||||
bottom: var(--measure-bottom, var(--templates-bottom, 12px));
|
||||
@@ -1297,6 +1580,265 @@ header {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.comment-card-modal {
|
||||
position: fixed;
|
||||
--env-control-h: 46px;
|
||||
--env-button-radius: 17px;
|
||||
--env-glass-control-bg: var(--nodedc-glass-control-bg);
|
||||
--env-glass-control-hover: var(--nodedc-glass-control-hover);
|
||||
--env-glass-control-shadow: var(--nodedc-glass-control-shadow);
|
||||
top: 96px;
|
||||
left: calc(50vw - 230px);
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
width: min(520px, calc(100vw - 36px));
|
||||
max-height: min(760px, calc(100vh - 72px));
|
||||
background: color-mix(in srgb, var(--modal-bg) var(--modal-bg-alpha, 100%), transparent);
|
||||
border: 1px solid var(--modal-border);
|
||||
border-radius: var(--modal-radius, 16px);
|
||||
box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
|
||||
z-index: 30050;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(18px);
|
||||
}
|
||||
|
||||
.comment-card-modal.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.comment-card-modal__header {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) var(--env-control-h);
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-height: calc(var(--env-control-h) + 20px);
|
||||
padding: 12px 12px 8px 16px;
|
||||
background: color-mix(in srgb, var(--modal-bg) var(--modal-bg-alpha, 100%), transparent);
|
||||
border-radius: var(--modal-radius, 16px) var(--modal-radius, 16px) 0 0;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.comment-card-modal__header:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.comment-card-modal__titles {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.comment-card-modal__title {
|
||||
color: var(--text);
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.comment-card-modal__subtitle {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.comment-card-modal__body {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 12px 14px 14px;
|
||||
}
|
||||
|
||||
.comment-field {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.comment-field span,
|
||||
.comment-thread__title,
|
||||
.comment-attachments__head span {
|
||||
color: rgba(245, 245, 250, 0.84);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.comment-field input,
|
||||
.comment-field textarea {
|
||||
width: 100%;
|
||||
border: 1px solid var(--modal-border);
|
||||
border-radius: var(--modal-radius, 10px);
|
||||
background: var(--modal-element);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
padding: 11px 12px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.comment-field textarea {
|
||||
min-height: 86px;
|
||||
line-height: 1.42;
|
||||
}
|
||||
|
||||
.comment-field input:focus,
|
||||
.comment-field textarea:focus {
|
||||
border-color: var(--modal-element-outline);
|
||||
box-shadow: 0 0 0 2px rgba(255, 234, 0, 0.08);
|
||||
}
|
||||
|
||||
.comment-attachments,
|
||||
.comment-thread {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
border: 1px solid var(--modal-border);
|
||||
border-radius: var(--modal-radius, 10px);
|
||||
background: color-mix(in srgb, var(--modal-focus) var(--modal-focus-alpha, 100%), transparent);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.comment-attachments--reply {
|
||||
border-style: dashed;
|
||||
}
|
||||
|
||||
.comment-attachments__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.comment-attach-button {
|
||||
min-height: 28px;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
background: var(--modal-element);
|
||||
color: rgba(245, 245, 250, 0.82);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.comment-attach-button:hover {
|
||||
background: var(--env-glass-control-hover);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.comment-attachment-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.comment-attachment-thumb {
|
||||
position: relative;
|
||||
min-height: 70px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--modal-border);
|
||||
border-radius: 9px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.comment-attachment-thumb img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 82px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.comment-attachment-thumb button {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: rgba(12, 12, 14, 0.76);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.comment-thread__list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.comment-thread-empty {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.comment-thread-message {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.045);
|
||||
padding: 9px;
|
||||
}
|
||||
|
||||
.comment-thread-message__head {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
color: rgba(245, 245, 250, 0.56);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.comment-thread-message__head strong {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: rgba(245, 245, 250, 0.9);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.comment-thread-message__body {
|
||||
color: rgba(245, 245, 250, 0.78);
|
||||
font-size: 12px;
|
||||
line-height: 1.42;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.comment-card-modal__footer {
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
background: color-mix(in srgb, var(--modal-bg) var(--modal-bg-alpha, 100%), transparent);
|
||||
border-top: 1px solid var(--modal-border);
|
||||
}
|
||||
|
||||
.comment-card-modal__footer .primary-btn,
|
||||
.comment-card-modal__footer .secondary-btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.comment-card-modal .error-text {
|
||||
min-height: 16px;
|
||||
color: var(--error);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.settings-panel {
|
||||
position: fixed;
|
||||
--env-control-h: 46px;
|
||||
|
||||
Reference in New Issue
Block a user