@vscode/markdown-editor 0.0.2-83 → 0.0.2-84
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/dist/index.d.ts +33 -105
- package/dist/index.js +1705 -2171
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.css +1 -1
- package/package.json +5 -7
- package/src/contrib/comments/commentInput.css +37 -98
- package/src/contrib/comments/commentWidget.css +60 -0
- package/src/contrib/comments/comments.css +0 -129
- package/src/contrib/commentsVscode/vscodeCommentWidgetV2.css +0 -171
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/markdown-editor",
|
|
3
|
-
"version": "0.0.2-
|
|
3
|
+
"version": "0.0.2-84",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -34,9 +34,8 @@
|
|
|
34
34
|
"src/view/themes/github.css",
|
|
35
35
|
"src/view/themes/vscode-github.css",
|
|
36
36
|
"src/view/themes/vscode-default.css",
|
|
37
|
-
"src/contrib/comments/comments.css",
|
|
38
37
|
"src/contrib/comments/commentInput.css",
|
|
39
|
-
"src/contrib/
|
|
38
|
+
"src/contrib/comments/commentWidget.css",
|
|
40
39
|
"src/contrib/find/find.css"
|
|
41
40
|
],
|
|
42
41
|
"exports": {
|
|
@@ -61,9 +60,8 @@
|
|
|
61
60
|
"./themes/github.css": "./src/view/themes/github.css",
|
|
62
61
|
"./themes/vscode-github.css": "./src/view/themes/vscode-github.css",
|
|
63
62
|
"./themes/vscode-default.css": "./src/view/themes/vscode-default.css",
|
|
64
|
-
"./comments.css": "./src/contrib/comments/comments.css",
|
|
65
63
|
"./commentInput.css": "./src/contrib/comments/commentInput.css",
|
|
66
|
-
"./
|
|
64
|
+
"./commentWidget.css": "./src/contrib/comments/commentWidget.css"
|
|
67
65
|
},
|
|
68
66
|
"scripts": {
|
|
69
67
|
"build": "pnpm run build:dependencies && vite build",
|
|
@@ -79,7 +77,7 @@
|
|
|
79
77
|
"test:e2e": "pnpm run build:fixture-dependencies && pnpm run build:fixtures && playwright test"
|
|
80
78
|
},
|
|
81
79
|
"dependencies": {
|
|
82
|
-
"@vscode/codicons": "
|
|
80
|
+
"@vscode/codicons": "0.0.46-36",
|
|
83
81
|
"@vscode/diff": "0.0.2-0",
|
|
84
82
|
"@vscode/observables": "^0.1.1-0",
|
|
85
83
|
"katex": "^0.16.33",
|
|
@@ -111,5 +109,5 @@
|
|
|
111
109
|
"vitest": "^4.1.0",
|
|
112
110
|
"zod": "^4.3.6"
|
|
113
111
|
},
|
|
114
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "b5fd5cda44376c118dd383f8c03ac4f6a06c648e"
|
|
115
113
|
}
|
|
@@ -1,150 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
* Styling for the comment input box (CommentInputWidget). Mirrors VS Code's
|
|
3
|
-
* agent-feedback input widget (`.agent-feedback-input-widget` in
|
|
4
|
-
* agentFeedbackEditorInput.css): a soft rounded panel on the panel background,
|
|
5
|
-
* wrapping a *borderless* auto-growing textarea that blends into the panel, with
|
|
6
|
-
* a small "plus" action on the right. The whole box is the bubble — there is no
|
|
7
|
-
* separate inner input field. Uses --vscode-* variables so it matches the host
|
|
8
|
-
* theme, with neutral fallbacks for standalone fixtures.
|
|
9
|
-
*/
|
|
1
|
+
@import '@vscode/codicons/dist/codicon.css';
|
|
10
2
|
|
|
11
3
|
.md-comment-input {
|
|
12
4
|
box-sizing: border-box;
|
|
13
5
|
display: flex;
|
|
14
|
-
flex-direction: row;
|
|
15
6
|
align-items: flex-end;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
border: 1px solid var(--vscode-editorWidget-border, var(--vscode-contrastBorder, rgba(59, 59, 59, 0.2)));
|
|
27
|
-
border-radius: 8px;
|
|
28
|
-
box-shadow: 0 0 12px rgba(0, 0, 0, 0.14);
|
|
29
|
-
font-family: var(--vscode-font-family, system-ui, sans-serif);
|
|
30
|
-
font-size: 13px;
|
|
31
|
-
animation: md-comment-input-appear 150ms ease-out;
|
|
7
|
+
width: 165px;
|
|
8
|
+
min-height: 24px;
|
|
9
|
+
padding: 3px 4px 3px 7px;
|
|
10
|
+
background-color: var(--vscode-menu-background);
|
|
11
|
+
color: var(--vscode-input-foreground);
|
|
12
|
+
border: 1px solid var(--vscode-menu-border);
|
|
13
|
+
border-radius: 6px;
|
|
14
|
+
box-shadow: 0 0 12px var(--vscode-widget-shadow);
|
|
15
|
+
font-family: var(--vscode-font-family);
|
|
16
|
+
font-size: var(--vscode-font-size);
|
|
32
17
|
}
|
|
33
18
|
|
|
34
19
|
.md-comment-input-textarea {
|
|
35
20
|
flex: 1 1 auto;
|
|
21
|
+
width: 0;
|
|
36
22
|
min-width: 0;
|
|
37
|
-
|
|
23
|
+
min-height: 16px;
|
|
24
|
+
max-height: 160px;
|
|
38
25
|
margin: 0;
|
|
39
|
-
padding: 0
|
|
40
|
-
border:
|
|
41
|
-
border-radius: 4px;
|
|
26
|
+
padding: 0;
|
|
27
|
+
border: 0;
|
|
42
28
|
outline: none;
|
|
43
29
|
resize: none;
|
|
44
30
|
overflow-y: hidden;
|
|
45
|
-
max-height: 160px;
|
|
46
31
|
box-sizing: border-box;
|
|
47
|
-
background
|
|
48
|
-
color: var(--vscode-input-foreground
|
|
32
|
+
background: transparent;
|
|
33
|
+
color: var(--vscode-input-foreground);
|
|
49
34
|
font: inherit;
|
|
50
|
-
line-height:
|
|
35
|
+
line-height: 16px;
|
|
51
36
|
white-space: pre-wrap;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
* The box lives inside `.md-editor`, which sets `caret-color: transparent`
|
|
55
|
-
* to hide the native caret (it paints its own). Restore a visible blinking
|
|
56
|
-
* caret here so the focused comment input shows one.
|
|
57
|
-
*/
|
|
58
|
-
caret-color: var(--vscode-editorCursor-foreground, currentColor);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@keyframes md-comment-input-appear {
|
|
62
|
-
from {
|
|
63
|
-
opacity: 0;
|
|
64
|
-
transform: translateY(4px);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
to {
|
|
68
|
-
opacity: 1;
|
|
69
|
-
transform: translateY(0);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@media (prefers-reduced-motion: reduce) {
|
|
74
|
-
.md-comment-input {
|
|
75
|
-
animation: none;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.md-comment-input-textarea:focus {
|
|
80
|
-
border-color: var(--vscode-focusBorder, #0078d4);
|
|
81
|
-
outline: none !important;
|
|
37
|
+
overflow-wrap: anywhere;
|
|
38
|
+
caret-color: var(--vscode-editorCursor-foreground);
|
|
82
39
|
}
|
|
83
40
|
|
|
84
41
|
.md-comment-input-textarea::placeholder {
|
|
85
|
-
color: var(--vscode-input-placeholderForeground
|
|
42
|
+
color: var(--vscode-input-placeholderForeground);
|
|
86
43
|
opacity: 1;
|
|
87
44
|
}
|
|
88
45
|
|
|
89
|
-
/* Hidden element used to measure text width for auto-growing (mirrors the
|
|
90
|
-
* reference''s `.agent-feedback-input-measure`). */
|
|
91
46
|
.md-comment-input-measure {
|
|
92
47
|
position: absolute;
|
|
93
48
|
visibility: hidden;
|
|
49
|
+
width: max-content;
|
|
94
50
|
height: 0;
|
|
95
51
|
overflow: hidden;
|
|
96
52
|
white-space: pre;
|
|
97
53
|
font: inherit;
|
|
98
54
|
}
|
|
99
55
|
|
|
100
|
-
.md-comment-input-actions {
|
|
101
|
-
display: flex;
|
|
102
|
-
align-items: center;
|
|
103
|
-
/*
|
|
104
|
-
* Match the textarea's single line box (line-height) so the centered icon
|
|
105
|
-
* lines up with the text's vertical center. The panel is `align-items:
|
|
106
|
-
* flex-end`, so on a multi-line textarea this box stays pinned to the bottom
|
|
107
|
-
* line — mirroring the reference agent-feedback widget.
|
|
108
|
-
*/
|
|
109
|
-
height: 22px;
|
|
110
|
-
margin-left: 2px;
|
|
111
|
-
flex-shrink: 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
56
|
.md-comment-input-submit {
|
|
115
57
|
display: flex;
|
|
58
|
+
flex: 0 0 auto;
|
|
116
59
|
align-items: center;
|
|
117
60
|
justify-content: center;
|
|
118
|
-
box-sizing: content-box;
|
|
119
|
-
/*
|
|
120
|
-
* 16px glyph inside a 22x22 hit-area (16 + 3px padding each side), matching
|
|
121
|
-
* the reference ActionBar action-label so the icon's spacing and hover target
|
|
122
|
-
* line up with the agent-feedback widget.
|
|
123
|
-
*/
|
|
124
61
|
width: 16px;
|
|
125
62
|
height: 16px;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
border
|
|
63
|
+
margin: 0 0 0 4px;
|
|
64
|
+
padding: 0;
|
|
65
|
+
border: 0;
|
|
66
|
+
border-radius: 4px;
|
|
129
67
|
background: transparent;
|
|
130
|
-
color: var(--vscode-foreground
|
|
68
|
+
color: var(--vscode-icon-foreground);
|
|
131
69
|
cursor: pointer;
|
|
132
70
|
}
|
|
133
71
|
|
|
134
72
|
.md-comment-input-submit:hover:not(:disabled) {
|
|
135
|
-
background-color: var(--vscode-toolbar-hoverBackground
|
|
73
|
+
background-color: var(--vscode-toolbar-hoverBackground);
|
|
136
74
|
}
|
|
137
75
|
|
|
138
76
|
.md-comment-input-submit:disabled {
|
|
139
|
-
opacity: 0.5;
|
|
140
77
|
cursor: default;
|
|
141
78
|
}
|
|
142
79
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
80
|
+
.md-comment-input .md-comment-input-submit .codicon {
|
|
81
|
+
display: block;
|
|
82
|
+
flex: none;
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
line-height: 12px;
|
|
85
|
+
}
|
|
86
|
+
|
|
148
87
|
.md-comment-active .md-cursor {
|
|
149
88
|
display: none;
|
|
150
89
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@import '@vscode/codicons/dist/codicon.css';
|
|
2
|
+
|
|
3
|
+
.md-comment-widget {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
width: max-content;
|
|
8
|
+
min-width: min(165px, var(--md-comment-available-width, 100%));
|
|
9
|
+
max-width: min(400px, var(--md-comment-available-width, 100%));
|
|
10
|
+
min-height: 24px;
|
|
11
|
+
padding: 3px 4px 3px 7px;
|
|
12
|
+
background-color: var(--vscode-menu-background);
|
|
13
|
+
color: var(--vscode-foreground);
|
|
14
|
+
border: 1px solid var(--vscode-menu-border);
|
|
15
|
+
border-radius: 6px;
|
|
16
|
+
box-shadow: 0 0 12px var(--vscode-widget-shadow);
|
|
17
|
+
font-family: var(--vscode-font-family);
|
|
18
|
+
font-size: var(--vscode-font-size);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.md-comment-widget:hover,
|
|
22
|
+
.md-comment-widget--hover {
|
|
23
|
+
background-color: var(--vscode-list-hoverBackground);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.md-comment-widget-text {
|
|
27
|
+
flex: 1 1 auto;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
line-height: 16px;
|
|
30
|
+
white-space: pre-wrap;
|
|
31
|
+
overflow-wrap: anywhere;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.md-comment-widget-delete {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex: 0 0 auto;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: 16px;
|
|
40
|
+
height: 16px;
|
|
41
|
+
margin: 0 0 0 4px;
|
|
42
|
+
padding: 0;
|
|
43
|
+
border: 0;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
background: transparent;
|
|
46
|
+
color: var(--vscode-icon-foreground);
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.md-comment-widget-delete:hover,
|
|
51
|
+
.md-comment-widget-delete--hover {
|
|
52
|
+
background-color: var(--vscode-toolbar-hoverBackground);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.md-comment-widget .md-comment-widget-delete .codicon {
|
|
56
|
+
display: block;
|
|
57
|
+
flex: none;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
line-height: 12px;
|
|
60
|
+
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Persistent comments: range highlights, leader lines, and the side rail of
|
|
3
|
-
* comment cards (CommentsView). Uses --vscode-* variables with neutral
|
|
4
|
-
* fallbacks so it works in standalone fixtures too.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/* --- Overlay layers ------------------------------------------------------ */
|
|
8
|
-
|
|
9
|
-
.md-comment-shapes {
|
|
10
|
-
position: absolute;
|
|
11
|
-
top: 0;
|
|
12
|
-
left: 0;
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100%;
|
|
15
|
-
/* The tail extends past the content into the rail; never clip it. */
|
|
16
|
-
overflow: visible;
|
|
17
|
-
/* Never block the document; hover is driven from the cards. */
|
|
18
|
-
pointer-events: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* Highlight fill and leader stroke share one solid color inside a single
|
|
22
|
-
* opacity group, so their overlap never darkens and the seam is invisible.
|
|
23
|
-
* The leader starts inside the highlight (hidden under the fill) and its bottom
|
|
24
|
-
* edge aligns with the selection bottom; the highlight's exit corner is squared
|
|
25
|
-
* (see buildConnectedPath) so there is no notch. */
|
|
26
|
-
.md-comment-group {
|
|
27
|
-
opacity: var(--md-comment-opacity, 0.16);
|
|
28
|
-
transition: opacity 0.1s ease;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.md-comment-group-hovered {
|
|
32
|
-
opacity: var(--md-comment-opacity-hover, 0.3);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.md-comment-shape-path {
|
|
36
|
-
fill: var(--md-comment-color, rgb(64, 120, 240));
|
|
37
|
-
stroke: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.md-comment-leader-path {
|
|
41
|
-
fill: none;
|
|
42
|
-
stroke: var(--md-comment-color, rgb(64, 120, 240));
|
|
43
|
-
stroke-width: 2;
|
|
44
|
-
stroke-linecap: butt;
|
|
45
|
-
stroke-linejoin: round;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* --- Cards (the right rail) ---------------------------------------------- */
|
|
49
|
-
|
|
50
|
-
.md-comment-card {
|
|
51
|
-
position: absolute;
|
|
52
|
-
box-sizing: border-box;
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
gap: 8px;
|
|
56
|
-
padding: 12px 14px;
|
|
57
|
-
background: var(--vscode-editorWidget-background, #fff);
|
|
58
|
-
color: var(--vscode-editorWidget-foreground, #1f1f1f);
|
|
59
|
-
border: 1px solid var(--vscode-editorWidget-border, #e0e0e0);
|
|
60
|
-
border-radius: 8px;
|
|
61
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
62
|
-
font-family: var(--vscode-font-family, system-ui, sans-serif);
|
|
63
|
-
font-size: 13px;
|
|
64
|
-
transition: box-shadow 0.1s ease, border-color 0.1s ease, top 0.12s ease;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.md-comment-card-hovered {
|
|
68
|
-
border-color: var(--md-comment-leader-hover, rgba(64, 120, 240, 1));
|
|
69
|
-
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.md-comment-card-header {
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
gap: 8px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.md-comment-avatar {
|
|
79
|
-
flex: 0 0 auto;
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
width: 24px;
|
|
84
|
-
height: 24px;
|
|
85
|
-
border-radius: 50%;
|
|
86
|
-
background: var(--md-comment-avatar-bg, #d6e2fb);
|
|
87
|
-
color: var(--md-comment-avatar-fg, #25408f);
|
|
88
|
-
font-size: 10px;
|
|
89
|
-
font-weight: 600;
|
|
90
|
-
letter-spacing: 0.3px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.md-comment-author {
|
|
94
|
-
font-weight: 600;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.md-comment-time {
|
|
98
|
-
color: var(--vscode-descriptionForeground, #767676);
|
|
99
|
-
font-size: 12px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.md-comment-menu {
|
|
103
|
-
margin-left: auto;
|
|
104
|
-
color: var(--vscode-descriptionForeground, #767676);
|
|
105
|
-
cursor: default;
|
|
106
|
-
user-select: none;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.md-comment-body {
|
|
110
|
-
line-height: 1.45;
|
|
111
|
-
white-space: pre-wrap;
|
|
112
|
-
word-break: break-word;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.md-comment-reply {
|
|
116
|
-
align-self: flex-start;
|
|
117
|
-
margin: 0;
|
|
118
|
-
padding: 0;
|
|
119
|
-
border: none;
|
|
120
|
-
background: transparent;
|
|
121
|
-
color: var(--vscode-textLink-foreground, #2563c9);
|
|
122
|
-
font: inherit;
|
|
123
|
-
font-weight: 600;
|
|
124
|
-
cursor: pointer;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.md-comment-reply:hover {
|
|
128
|
-
text-decoration: underline;
|
|
129
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* Styling for VsCodeCommentWidgetV2 — a replica of the Figma "Markdown comment"
|
|
8
|
-
* frames. It is theme-aware: every colour is driven by a VS Code `--vscode-*`
|
|
9
|
-
* design token, with the original Figma dark values kept only as literal
|
|
10
|
-
* fallbacks (so the card still renders when no theme provider is present). Wrap
|
|
11
|
-
* the widget in `.vscode-comments-light` / `.vscode-comments-dark` (from
|
|
12
|
-
* vscodeCommentTokens.css) to supply those tokens.
|
|
13
|
-
*
|
|
14
|
-
* Figma token -> VS Code token (fallback)
|
|
15
|
-
* editorWidget/background --vscode-editorWidget-background (#202122)
|
|
16
|
-
* editorHoverWidget/border --vscode-editorHoverWidget-border (#2a2b2c)
|
|
17
|
-
* foreground --vscode-foreground (#bfbfbf)
|
|
18
|
-
* icon/foreground --vscode-icon-foreground (#8c8c8c)
|
|
19
|
-
* textLink/foreground --vscode-textLink-foreground (#48a0c7)
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/* Supplemental tokens not provided by vscodeCommentTokens.css. */
|
|
23
|
-
.vscode-comments-light {
|
|
24
|
-
--vscode-icon-foreground: #616161;
|
|
25
|
-
--vscode-textLink-foreground: #005fb8;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.vscode-comments-dark {
|
|
29
|
-
--vscode-editorWidget-background: #202122;
|
|
30
|
-
--vscode-editorHoverWidget-border: #2a2b2c;
|
|
31
|
-
--vscode-foreground: #bfbfbf;
|
|
32
|
-
--vscode-icon-foreground: #8c8c8c;
|
|
33
|
-
--vscode-textLink-foreground: #4daafc;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.vscode-comment-widget-v2 {
|
|
37
|
-
box-sizing: border-box;
|
|
38
|
-
width: 320px;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
gap: 12px;
|
|
42
|
-
padding: 8px;
|
|
43
|
-
/* size80 */
|
|
44
|
-
background: var(--vscode-editorWidget-background, #202122);
|
|
45
|
-
border: none;
|
|
46
|
-
border-radius: var(--vscode-cornerRadius-large, 8px);
|
|
47
|
-
/* Outer radius */
|
|
48
|
-
box-shadow:
|
|
49
|
-
inset 0 0 0 1px var(--vscode-editorHoverWidget-border, var(--vscode-editorWidget-border, #2a2b2c)),
|
|
50
|
-
0 8px 8px rgba(0, 0, 0, 0.25);
|
|
51
|
-
font-family: var(--vscode-font-family, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.vscode-comment-widget-v2 *,
|
|
55
|
-
.vscode-comment-widget-v2 *::before,
|
|
56
|
-
.vscode-comment-widget-v2 *::after {
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Header row: username on the left, edit/trash actions on the right. */
|
|
61
|
-
.vscode-comment-widget-v2-header {
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
justify-content: space-between;
|
|
65
|
-
width: 100%;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.vscode-comment-widget-v2-title-group {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
gap: 6px;
|
|
72
|
-
/* size60 */
|
|
73
|
-
flex: 1 0 0;
|
|
74
|
-
min-width: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.vscode-comment-widget-v2-username {
|
|
78
|
-
flex: 1 0 0;
|
|
79
|
-
min-width: 0;
|
|
80
|
-
overflow: hidden;
|
|
81
|
-
text-overflow: ellipsis;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
/* Font ramp/Heading 3: SF Pro Text Semibold 13 */
|
|
84
|
-
font-size: 13px;
|
|
85
|
-
font-weight: 600;
|
|
86
|
-
line-height: 16px;
|
|
87
|
-
color: var(--vscode-foreground, #bfbfbf);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.vscode-comment-widget-v2-actions {
|
|
91
|
-
display: flex;
|
|
92
|
-
align-items: center;
|
|
93
|
-
gap: 4px;
|
|
94
|
-
/* size40 */
|
|
95
|
-
flex-shrink: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.vscode-comment-widget-v2-action {
|
|
99
|
-
display: inline-flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
width: 16px;
|
|
103
|
-
height: 16px;
|
|
104
|
-
padding: 0;
|
|
105
|
-
margin: 0;
|
|
106
|
-
border: none;
|
|
107
|
-
background: transparent;
|
|
108
|
-
color: var(--vscode-icon-foreground, #8c8c8c);
|
|
109
|
-
cursor: pointer;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.vscode-comment-widget-v2-action:hover {
|
|
113
|
-
color: var(--vscode-foreground, #bfbfbf);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.vscode-comment-widget-v2-action svg {
|
|
117
|
-
display: block;
|
|
118
|
-
width: 16px;
|
|
119
|
-
height: 16px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/* Body: comment text + optional "See more" / "See less" toggle. */
|
|
123
|
-
.vscode-comment-widget-v2-body {
|
|
124
|
-
display: flex;
|
|
125
|
-
flex-direction: column;
|
|
126
|
-
gap: 6px;
|
|
127
|
-
/* size60 */
|
|
128
|
-
width: 100%;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.vscode-comment-widget-v2-text {
|
|
132
|
-
margin: 0;
|
|
133
|
-
width: 100%;
|
|
134
|
-
/* Font ramp/Body 1: SF Pro Text Regular 13 */
|
|
135
|
-
font-size: 13px;
|
|
136
|
-
font-weight: 400;
|
|
137
|
-
line-height: 16px;
|
|
138
|
-
color: var(--vscode-foreground, #bfbfbf);
|
|
139
|
-
opacity: 0.9;
|
|
140
|
-
white-space: pre-wrap;
|
|
141
|
-
word-break: break-word;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/* Collapsed bodies clamp to three lines (matches the Figma "See more" frame). */
|
|
145
|
-
.vscode-comment-widget-v2--collapsed .vscode-comment-widget-v2-text {
|
|
146
|
-
display: -webkit-box;
|
|
147
|
-
-webkit-box-orient: vertical;
|
|
148
|
-
-webkit-line-clamp: 3;
|
|
149
|
-
line-clamp: 3;
|
|
150
|
-
overflow: hidden;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.vscode-comment-widget-v2-toggle {
|
|
154
|
-
align-self: flex-start;
|
|
155
|
-
padding: 0;
|
|
156
|
-
margin: 0;
|
|
157
|
-
border: none;
|
|
158
|
-
background: none;
|
|
159
|
-
cursor: pointer;
|
|
160
|
-
text-align: left;
|
|
161
|
-
/* Font ramp/Label 1: SF Pro Text Regular 12 */
|
|
162
|
-
font-family: inherit;
|
|
163
|
-
font-size: 12px;
|
|
164
|
-
font-weight: 400;
|
|
165
|
-
line-height: normal;
|
|
166
|
-
color: var(--vscode-textLink-foreground, #48a0c7);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.vscode-comment-widget-v2-toggle:hover {
|
|
170
|
-
text-decoration: underline;
|
|
171
|
-
}
|