@tldraw/collaboration 5.3.0-next.7654e7ac2a02 → 5.3.0-next.aefb8773a7eb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/collaboration.css +34 -28
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +3 -3
package/collaboration.css
CHANGED
|
@@ -198,6 +198,15 @@
|
|
|
198
198
|
overflow-wrap: anywhere;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
/* A comment body is read-only but its text must stay selectable so it can be copied. tldraw's
|
|
202
|
+
container sets `user-select: none` on every descendant (`.tl-container *`) to keep canvas gestures
|
|
203
|
+
from selecting UI text, so the body and its rendered children have to opt back in. */
|
|
204
|
+
.tlui-cmt-text,
|
|
205
|
+
.tlui-cmt-text * {
|
|
206
|
+
-webkit-user-select: text;
|
|
207
|
+
user-select: text;
|
|
208
|
+
}
|
|
209
|
+
|
|
201
210
|
.tlui-cmt-edited {
|
|
202
211
|
font-style: italic;
|
|
203
212
|
}
|
|
@@ -891,7 +900,7 @@ button.tlui-cmt-reaction--active:hover {
|
|
|
891
900
|
align-items: center;
|
|
892
901
|
justify-content: space-between;
|
|
893
902
|
gap: 8px;
|
|
894
|
-
padding:
|
|
903
|
+
padding: 2px 2px 2px 14px;
|
|
895
904
|
border-bottom: 1px solid var(--tl-color-divider);
|
|
896
905
|
}
|
|
897
906
|
.tlui-cmt-list__header-title {
|
|
@@ -900,41 +909,28 @@ button.tlui-cmt-reaction--active:hover {
|
|
|
900
909
|
color: var(--tl-color-text-1);
|
|
901
910
|
}
|
|
902
911
|
|
|
903
|
-
/*
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
stylesheet order can't decide the winner. */
|
|
912
|
+
/* An icon button in the sidebar header (filter funnel, overflow …). Sized like the thread actions:
|
|
913
|
+
a TldrawUiButton (type="icon") left at its native 40px box, with .tlui-button's 32px ::after
|
|
914
|
+
square carrying the hover wash. Only the bits that differ are set here, at .tlui-button's
|
|
915
|
+
specificity + 1 so stylesheet order can't decide the winner. */
|
|
907
916
|
.tlui-button.tlui-cmt-header-btn {
|
|
908
|
-
width:
|
|
909
|
-
min-width: 26px;
|
|
910
|
-
height: 26px;
|
|
917
|
+
width: 40px;
|
|
911
918
|
padding: 0;
|
|
912
919
|
border-radius: 6px;
|
|
913
920
|
color: var(--tl-color-text-2);
|
|
914
921
|
}
|
|
915
|
-
/*
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
.tlui-button.tlui-cmt-header-btn::after {
|
|
920
|
-
inset: -6px -1px;
|
|
921
|
-
background: none;
|
|
922
|
-
}
|
|
923
|
-
.tlui-button.tlui-cmt-header-btn:first-child::after {
|
|
924
|
-
left: -6px;
|
|
925
|
-
}
|
|
926
|
-
.tlui-button.tlui-cmt-header-btn:last-child::after {
|
|
927
|
-
right: -6px;
|
|
922
|
+
/* Overlap each button 4px into the previous so the 32px visual squares sit 4px apart, not 8px —
|
|
923
|
+
the same tiling the thread actions use. */
|
|
924
|
+
.tlui-cmt-header-btn + .tlui-cmt-header-btn {
|
|
925
|
+
margin-left: -4px;
|
|
928
926
|
}
|
|
929
927
|
.tlui-button.tlui-cmt-header-btn:hover,
|
|
930
928
|
.tlui-button.tlui-cmt-header-btn[data-state='open'] {
|
|
931
|
-
background: var(--tl-color-muted-2);
|
|
932
929
|
color: var(--tl-color-text-1);
|
|
933
930
|
}
|
|
934
931
|
.tlui-cmt-list__header-actions {
|
|
935
932
|
display: flex;
|
|
936
933
|
align-items: center;
|
|
937
|
-
gap: 2px;
|
|
938
934
|
}
|
|
939
935
|
|
|
940
936
|
/* The commenting dropdowns' surface — a little air between the items and the menu edge. */
|
|
@@ -990,6 +986,7 @@ button.tlui-cmt-reaction--active:hover {
|
|
|
990
986
|
font-size: 12px;
|
|
991
987
|
}
|
|
992
988
|
.tlui-cmt-list__item {
|
|
989
|
+
position: relative;
|
|
993
990
|
display: flex;
|
|
994
991
|
gap: 10px;
|
|
995
992
|
width: 100%;
|
|
@@ -1004,18 +1001,27 @@ button.tlui-cmt-reaction--active:hover {
|
|
|
1004
1001
|
color: inherit;
|
|
1005
1002
|
text-decoration: none;
|
|
1006
1003
|
}
|
|
1007
|
-
|
|
1004
|
+
/* The highlight is an inset, rounded wash like tldraw's buttons and menu items — not an
|
|
1005
|
+
edge-to-edge band — so a comment row lights up the same way every other interactive row does. */
|
|
1006
|
+
.tlui-cmt-list__item::after {
|
|
1007
|
+
content: '';
|
|
1008
|
+
position: absolute;
|
|
1009
|
+
inset: 4px;
|
|
1010
|
+
border-radius: var(--tl-radius-2);
|
|
1011
|
+
pointer-events: none;
|
|
1012
|
+
}
|
|
1013
|
+
.tlui-cmt-list__item:hover::after {
|
|
1008
1014
|
background: var(--tl-color-muted-2);
|
|
1009
1015
|
}
|
|
1010
1016
|
/* Selected sits a step above hover so the open thread's row stays distinguishable while
|
|
1011
1017
|
pointing at other rows — but only a step: the muted-1 token (10%) reads too heavy here.
|
|
1012
1018
|
These rows sit on the opaque sidebar panel, so a translucent tint composes safely. */
|
|
1013
|
-
.tlui-cmt-list__item--selected,
|
|
1014
|
-
.tlui-cmt-list__item--selected:hover {
|
|
1019
|
+
.tlui-cmt-list__item--selected::after,
|
|
1020
|
+
.tlui-cmt-list__item--selected:hover::after {
|
|
1015
1021
|
background: hsl(0, 0%, 0%, 5%);
|
|
1016
1022
|
}
|
|
1017
|
-
.tl-theme__dark .tlui-cmt-list__item--selected,
|
|
1018
|
-
.tl-theme__dark .tlui-cmt-list__item--selected:hover {
|
|
1023
|
+
.tl-theme__dark .tlui-cmt-list__item--selected::after,
|
|
1024
|
+
.tl-theme__dark .tlui-cmt-list__item--selected:hover::after {
|
|
1019
1025
|
background: hsl(0, 0%, 100%, 5%);
|
|
1020
1026
|
}
|
|
1021
1027
|
/* resolved rows mute their content but keep the "Resolved" marker legible */
|
package/dist-cjs/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var import_utils = require("@tldraw/utils");
|
|
|
19
19
|
__reExport(index_exports, require("@tldraw/commenting"), module.exports);
|
|
20
20
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
21
21
|
"@tldraw/collaboration",
|
|
22
|
-
"5.3.0-next.
|
|
22
|
+
"5.3.0-next.aefb8773a7eb",
|
|
23
23
|
"cjs"
|
|
24
24
|
);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/collaboration",
|
|
3
3
|
"description": "tldraw collaboration umbrella package.",
|
|
4
|
-
"version": "5.3.0-next.
|
|
4
|
+
"version": "5.3.0-next.aefb8773a7eb",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"node": ">=22.12.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@tldraw/commenting": "5.3.0-next.
|
|
55
|
-
"@tldraw/utils": "5.3.0-next.
|
|
54
|
+
"@tldraw/commenting": "5.3.0-next.aefb8773a7eb",
|
|
55
|
+
"@tldraw/utils": "5.3.0-next.aefb8773a7eb"
|
|
56
56
|
},
|
|
57
57
|
"module": "dist-esm/index.mjs",
|
|
58
58
|
"source": "src/index.ts",
|