chat fix
This commit is contained in:
1 parent
262b853c5b
commit
3ae84ccdd7
2 files changed
+12
-1
No files matched your search
@@ -129,6 +129,14 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
}
|
||||||
|
.chat-empty > p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
#chat-empty-start {
|
||||||
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Thread view ── */
|
/* ── Thread view ── */
|
||||||
|
|||||||
@@ -424,6 +424,10 @@ function onEdMouseDown(e) {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
edSelected = -1;
|
edSelected = -1;
|
||||||
updateEdDeleteBtn();
|
updateEdDeleteBtn();
|
||||||
|
// Re-render existing rects first so the prior selection clears visually —
|
||||||
|
// doing this AFTER creating the draft would wipe it since renderEdRects
|
||||||
|
// replaces ed.layer.innerHTML.
|
||||||
|
renderEdRects();
|
||||||
const p = edLayerPct(e);
|
const p = edLayerPct(e);
|
||||||
const draft = document.createElement('div');
|
const draft = document.createElement('div');
|
||||||
draft.className = 'ed-rect-draft';
|
draft.className = 'ed-rect-draft';
|
||||||
@@ -433,7 +437,6 @@ function onEdMouseDown(e) {
|
|||||||
draft.style.height = '0%';
|
draft.style.height = '0%';
|
||||||
ed.layer.appendChild(draft);
|
ed.layer.appendChild(draft);
|
||||||
edDrag = { mode: 'create', startX: p.x, startY: p.y, draft };
|
edDrag = { mode: 'create', startX: p.x, startY: p.y, draft };
|
||||||
renderEdRects();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onEdMouseMove(e) {
|
function onEdMouseMove(e) {
|
||||||
|
|||||||
Reference in new issue
Block a user