@nkzw/codiff-core 1.9.1 → 1.11.0
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/SharedWalkthroughApp.d.ts +2 -1
- package/dist/app/components/DefinitionPopover.d.ts +12 -0
- package/dist/app/components/OpenReviewSourceDialog.d.ts +6 -0
- package/dist/app/components/OpenReviewSourceMenu.d.ts +5 -0
- package/dist/app/components/Panels.d.ts +8 -2
- package/dist/app/components/ReadOnlyMarkdownView.d.ts +1 -0
- package/dist/app/components/ResolvedThreadDisclosure.d.ts +9 -0
- package/dist/app/components/ReviewCodeView.d.ts +4 -2
- package/dist/app/components/ReviewModeControl.d.ts +14 -0
- package/dist/app/components/ReviewTopBar.d.ts +14 -13
- package/dist/app/components/merge-request/GeneralComments.d.ts +2 -1
- package/dist/app/components/walkthrough/NarrativeWalkthroughView.d.ts +6 -4
- package/dist/app/components/walkthrough/useNarrativeNavigation.d.ts +1 -1
- package/dist/app/hooks/useAppCommands.d.ts +3 -2
- package/dist/app/hooks/useAppReviewComments.d.ts +1 -0
- package/dist/app/hooks/useAppWalkthrough.d.ts +1 -1
- package/dist/app/hooks/useResizableSidebar.d.ts +2 -1
- package/dist/app/hooks/useReviewCommentDrafts.d.ts +1 -0
- package/dist/config/keyboard-layout.d.ts +13 -0
- package/dist/config/keymap.d.ts +3 -1
- package/dist/config/types.d.ts +3 -0
- package/dist/lib/app-types.d.ts +1 -0
- package/dist/lib/code-view-options.d.ts +1 -1
- package/dist/lib/files.d.ts +10 -1
- package/dist/lib/identifier-navigation.d.ts +10 -0
- package/dist/lib/keyboard.d.ts +1 -0
- package/dist/react.mjs +1163 -278
- package/dist/share.mjs +8 -7
- package/dist/style.css +392 -52
- package/dist/types.d.ts +37 -1
- package/package.json +6 -5
package/dist/share.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { array, check, integer, literal, looseObject, maxLength, maxValue, minLength, minValue, number, optional, parse, picklist, pipe, safeParse, string, union } from "valibot";
|
|
2
2
|
//#region share.ts
|
|
3
|
-
const maxDocumentLength =
|
|
4
|
-
const maxCommentLength =
|
|
5
|
-
const maxAnchorTextLength =
|
|
3
|
+
const maxDocumentLength = 2097152;
|
|
4
|
+
const maxCommentLength = 131072;
|
|
5
|
+
const maxAnchorTextLength = 65536;
|
|
6
6
|
const boundedString = (maximum) => pipe(string(), maxLength(maximum));
|
|
7
7
|
const nonEmptyString = (maximum) => pipe(string(), minLength(1), maxLength(maximum));
|
|
8
8
|
const timestamp = pipe(nonEmptyString(64), check((value) => Number.isFinite(Date.parse(value)), "Invalid timestamp."));
|
|
@@ -83,12 +83,13 @@ const planShareManifestV1Schema = looseObject({
|
|
|
83
83
|
})),
|
|
84
84
|
version: literal(1)
|
|
85
85
|
});
|
|
86
|
+
const uploaderSchema = looseObject({
|
|
87
|
+
email: optional(boundedString(320)),
|
|
88
|
+
name: optional(boundedString(200))
|
|
89
|
+
});
|
|
86
90
|
const planShareUploadEnvelopeSchema = looseObject({
|
|
87
91
|
snapshot: planShareManifestV1Schema,
|
|
88
|
-
uploader: optional(
|
|
89
|
-
email: optional(boundedString(320)),
|
|
90
|
-
name: optional(boundedString(200))
|
|
91
|
-
}))
|
|
92
|
+
uploader: optional(uploaderSchema)
|
|
92
93
|
});
|
|
93
94
|
const parsePlanShareManifest = (value) => parse(planShareManifestV1Schema, value);
|
|
94
95
|
const parsePlanShareUpload = (value) => {
|
package/dist/style.css
CHANGED
|
@@ -3766,7 +3766,7 @@ form._multiFieldForm_sre1d_1628 {
|
|
|
3766
3766
|
box-shadow: inset 3px 0 #3d87f500;
|
|
3767
3767
|
}
|
|
3768
3768
|
|
|
3769
|
-
.wt-stop-block-header
|
|
3769
|
+
.codiff-selected-item .wt-stop-block-header {
|
|
3770
3770
|
box-shadow: inset 3px 0 0 var(--tree-selection-focus);
|
|
3771
3771
|
}
|
|
3772
3772
|
|
|
@@ -5249,6 +5249,10 @@ html[data-codiff-platform="darwin"] .workspace-top-bar {
|
|
|
5249
5249
|
display: none;
|
|
5250
5250
|
}
|
|
5251
5251
|
|
|
5252
|
+
.app-shell.sidebar-collapsed > .review {
|
|
5253
|
+
grid-column: 1;
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5252
5256
|
.review-top-bar {
|
|
5253
5257
|
grid-area: 1 / 1 / auto / -1;
|
|
5254
5258
|
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
@@ -5256,6 +5260,7 @@ html[data-codiff-platform="darwin"] .workspace-top-bar {
|
|
|
5256
5260
|
min-width: 0;
|
|
5257
5261
|
padding: 0 14px 0 78px;
|
|
5258
5262
|
display: grid;
|
|
5263
|
+
position: relative;
|
|
5259
5264
|
}
|
|
5260
5265
|
|
|
5261
5266
|
.share-shell .review-top-bar, .app-shell.window-fullscreen .review-top-bar {
|
|
@@ -5270,13 +5275,33 @@ html[data-codiff-platform="darwin"] .workspace-top-bar {
|
|
|
5270
5275
|
}
|
|
5271
5276
|
|
|
5272
5277
|
.review-top-bar-left {
|
|
5278
|
+
grid-column: 1;
|
|
5273
5279
|
justify-content: flex-start;
|
|
5274
5280
|
}
|
|
5275
5281
|
|
|
5276
5282
|
.review-top-bar-right {
|
|
5283
|
+
grid-column: 3;
|
|
5277
5284
|
justify-content: flex-end;
|
|
5278
5285
|
}
|
|
5279
5286
|
|
|
5287
|
+
.review-top-bar-center {
|
|
5288
|
+
pointer-events: none;
|
|
5289
|
+
justify-content: center;
|
|
5290
|
+
align-items: center;
|
|
5291
|
+
min-width: 0;
|
|
5292
|
+
max-width: min(38%, 320px);
|
|
5293
|
+
display: flex;
|
|
5294
|
+
position: absolute;
|
|
5295
|
+
top: 50%;
|
|
5296
|
+
left: 50%;
|
|
5297
|
+
transform: translate(-50%, -50%);
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
.review-top-bar-center .review-top-bar-branch {
|
|
5301
|
+
pointer-events: auto;
|
|
5302
|
+
max-width: 100%;
|
|
5303
|
+
}
|
|
5304
|
+
|
|
5280
5305
|
.review-top-bar-repository-slot {
|
|
5281
5306
|
color: var(--sidebar-text);
|
|
5282
5307
|
font-family: var(--font-mono);
|
|
@@ -5298,6 +5323,29 @@ html[data-codiff-platform="darwin"] .workspace-top-bar {
|
|
|
5298
5323
|
overflow: hidden;
|
|
5299
5324
|
}
|
|
5300
5325
|
|
|
5326
|
+
.review-top-bar-repository-path {
|
|
5327
|
+
flex: 0 auto;
|
|
5328
|
+
align-items: center;
|
|
5329
|
+
display: flex;
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5332
|
+
.review-top-bar-repository-head {
|
|
5333
|
+
text-overflow: ellipsis;
|
|
5334
|
+
white-space: nowrap;
|
|
5335
|
+
flex: 0 auto;
|
|
5336
|
+
min-width: 0;
|
|
5337
|
+
overflow: hidden;
|
|
5338
|
+
}
|
|
5339
|
+
|
|
5340
|
+
.review-top-bar-repository-tail {
|
|
5341
|
+
text-overflow: ellipsis;
|
|
5342
|
+
white-space: nowrap;
|
|
5343
|
+
flex: none;
|
|
5344
|
+
min-width: 0;
|
|
5345
|
+
max-width: 100%;
|
|
5346
|
+
overflow: hidden;
|
|
5347
|
+
}
|
|
5348
|
+
|
|
5301
5349
|
.review-top-bar-branch {
|
|
5302
5350
|
color: var(--muted);
|
|
5303
5351
|
corner-shape: squircle;
|
|
@@ -5433,7 +5481,7 @@ a.review-top-bar-repository:focus-visible, a.review-top-bar-source:focus-visible
|
|
|
5433
5481
|
height: 6px;
|
|
5434
5482
|
}
|
|
5435
5483
|
|
|
5436
|
-
.
|
|
5484
|
+
.review-top-bar-icon-button {
|
|
5437
5485
|
-webkit-app-region: no-drag;
|
|
5438
5486
|
color: var(--muted);
|
|
5439
5487
|
corner-shape: squircle;
|
|
@@ -5451,12 +5499,13 @@ a.review-top-bar-repository:focus-visible, a.review-top-bar-source:focus-visible
|
|
|
5451
5499
|
display: inline-flex;
|
|
5452
5500
|
}
|
|
5453
5501
|
|
|
5454
|
-
.
|
|
5502
|
+
.review-top-bar-icon-button:hover {
|
|
5455
5503
|
color: var(--sidebar-text);
|
|
5456
5504
|
background: #7f7f7f24;
|
|
5457
5505
|
}
|
|
5458
5506
|
|
|
5459
|
-
.
|
|
5507
|
+
.review-top-bar-icon-button:active {
|
|
5508
|
+
color: var(--sidebar-text);
|
|
5460
5509
|
background: #7f7f7f33;
|
|
5461
5510
|
}
|
|
5462
5511
|
|
|
@@ -5469,8 +5518,24 @@ a.review-top-bar-repository:focus-visible, a.review-top-bar-source:focus-visible
|
|
|
5469
5518
|
position: relative;
|
|
5470
5519
|
}
|
|
5471
5520
|
|
|
5472
|
-
.app-shell > .sidebar
|
|
5473
|
-
grid-
|
|
5521
|
+
.app-shell > .sidebar {
|
|
5522
|
+
grid-area: 2 / 1;
|
|
5523
|
+
}
|
|
5524
|
+
|
|
5525
|
+
.app-shell > .sidebar-resizer {
|
|
5526
|
+
grid-area: 2 / 2;
|
|
5527
|
+
}
|
|
5528
|
+
|
|
5529
|
+
.app-shell > .review {
|
|
5530
|
+
grid-area: 2 / 3;
|
|
5531
|
+
}
|
|
5532
|
+
|
|
5533
|
+
.app-shell[data-sidebar-position="right"] > .review {
|
|
5534
|
+
grid-column: 1;
|
|
5535
|
+
}
|
|
5536
|
+
|
|
5537
|
+
.app-shell[data-sidebar-position="right"] > .sidebar {
|
|
5538
|
+
grid-column: 3;
|
|
5474
5539
|
}
|
|
5475
5540
|
|
|
5476
5541
|
.sidebar-resizer:before {
|
|
@@ -6135,6 +6200,118 @@ html[data-codiff-platform="darwin"] .sidebar {
|
|
|
6135
6200
|
overflow: auto;
|
|
6136
6201
|
}
|
|
6137
6202
|
|
|
6203
|
+
.definition-popover {
|
|
6204
|
+
background: var(--code-bg);
|
|
6205
|
+
border: 1px solid var(--file-border);
|
|
6206
|
+
color: var(--text);
|
|
6207
|
+
z-index: 100;
|
|
6208
|
+
border-radius: 14px;
|
|
6209
|
+
width: min(420px, 100vw - 24px);
|
|
6210
|
+
max-height: 300px;
|
|
6211
|
+
animation: .12s review-submit-popover-in;
|
|
6212
|
+
position: fixed;
|
|
6213
|
+
overflow: hidden;
|
|
6214
|
+
box-shadow: 0 12px 36px #0003;
|
|
6215
|
+
}
|
|
6216
|
+
|
|
6217
|
+
.definition-popover-header, .definition-popover-location {
|
|
6218
|
+
justify-content: space-between;
|
|
6219
|
+
align-items: center;
|
|
6220
|
+
display: flex;
|
|
6221
|
+
}
|
|
6222
|
+
|
|
6223
|
+
.definition-popover-header {
|
|
6224
|
+
border-bottom: 1px solid var(--file-border);
|
|
6225
|
+
padding: 9px 10px 9px 12px;
|
|
6226
|
+
font-size: 12px;
|
|
6227
|
+
font-weight: 600;
|
|
6228
|
+
}
|
|
6229
|
+
|
|
6230
|
+
.definition-popover-header code {
|
|
6231
|
+
font-family: var(--codiff-font-mono);
|
|
6232
|
+
}
|
|
6233
|
+
|
|
6234
|
+
.definition-popover-header button {
|
|
6235
|
+
color: var(--muted);
|
|
6236
|
+
background: none;
|
|
6237
|
+
border: 0;
|
|
6238
|
+
border-radius: 6px;
|
|
6239
|
+
align-items: center;
|
|
6240
|
+
padding: 3px;
|
|
6241
|
+
display: flex;
|
|
6242
|
+
}
|
|
6243
|
+
|
|
6244
|
+
.definition-popover-header button:hover, .definition-popover-result:hover {
|
|
6245
|
+
background: var(--hover-wash);
|
|
6246
|
+
}
|
|
6247
|
+
|
|
6248
|
+
.definition-popover-message {
|
|
6249
|
+
color: var(--muted);
|
|
6250
|
+
padding: 18px 12px;
|
|
6251
|
+
font-size: 12px;
|
|
6252
|
+
}
|
|
6253
|
+
|
|
6254
|
+
.definition-popover-results {
|
|
6255
|
+
max-height: 252px;
|
|
6256
|
+
padding: 5px;
|
|
6257
|
+
overflow: auto;
|
|
6258
|
+
}
|
|
6259
|
+
|
|
6260
|
+
.definition-popover-result {
|
|
6261
|
+
color: inherit;
|
|
6262
|
+
text-align: left;
|
|
6263
|
+
background: none;
|
|
6264
|
+
border: 0;
|
|
6265
|
+
border-radius: 8px;
|
|
6266
|
+
width: 100%;
|
|
6267
|
+
padding: 7px 8px;
|
|
6268
|
+
display: block;
|
|
6269
|
+
}
|
|
6270
|
+
|
|
6271
|
+
.definition-popover-result:disabled {
|
|
6272
|
+
cursor: not-allowed;
|
|
6273
|
+
opacity: .56;
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6276
|
+
.definition-popover-result:disabled:hover {
|
|
6277
|
+
background: none;
|
|
6278
|
+
}
|
|
6279
|
+
|
|
6280
|
+
.definition-popover-location {
|
|
6281
|
+
gap: 12px;
|
|
6282
|
+
margin-bottom: 4px;
|
|
6283
|
+
font-size: 11px;
|
|
6284
|
+
}
|
|
6285
|
+
|
|
6286
|
+
.definition-popover-meta, .definition-popover-destination {
|
|
6287
|
+
align-items: center;
|
|
6288
|
+
display: inline-flex;
|
|
6289
|
+
}
|
|
6290
|
+
|
|
6291
|
+
.definition-popover-meta {
|
|
6292
|
+
color: var(--muted);
|
|
6293
|
+
gap: 7px;
|
|
6294
|
+
}
|
|
6295
|
+
|
|
6296
|
+
.definition-popover-destination {
|
|
6297
|
+
opacity: .72;
|
|
6298
|
+
}
|
|
6299
|
+
|
|
6300
|
+
.definition-popover-result:hover .definition-popover-destination {
|
|
6301
|
+
color: var(--text);
|
|
6302
|
+
opacity: 1;
|
|
6303
|
+
}
|
|
6304
|
+
|
|
6305
|
+
.definition-popover-result code {
|
|
6306
|
+
color: var(--muted);
|
|
6307
|
+
font-family: var(--codiff-font-mono);
|
|
6308
|
+
text-overflow: ellipsis;
|
|
6309
|
+
white-space: nowrap;
|
|
6310
|
+
font-size: 11px;
|
|
6311
|
+
display: block;
|
|
6312
|
+
overflow: hidden;
|
|
6313
|
+
}
|
|
6314
|
+
|
|
6138
6315
|
.codiff-header-toggle.codiff-header-toggle-static {
|
|
6139
6316
|
cursor: default;
|
|
6140
6317
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -6586,8 +6763,23 @@ html[data-codiff-platform="darwin"] .sidebar {
|
|
|
6586
6763
|
color: var(--text);
|
|
6587
6764
|
cursor: pointer;
|
|
6588
6765
|
font: 600 13px/1.4 var(--font-sans);
|
|
6766
|
+
align-items: center;
|
|
6767
|
+
gap: 8px;
|
|
6589
6768
|
padding: 8px 10px;
|
|
6590
6769
|
list-style: none;
|
|
6770
|
+
display: flex;
|
|
6771
|
+
}
|
|
6772
|
+
|
|
6773
|
+
.codiff-markdown-details-summary-label {
|
|
6774
|
+
flex: 1;
|
|
6775
|
+
min-width: 0;
|
|
6776
|
+
}
|
|
6777
|
+
|
|
6778
|
+
.codiff-markdown-details > summary .codiff-copy-code-button {
|
|
6779
|
+
opacity: 1;
|
|
6780
|
+
width: 24px;
|
|
6781
|
+
height: 24px;
|
|
6782
|
+
margin: -4px 0;
|
|
6591
6783
|
}
|
|
6592
6784
|
|
|
6593
6785
|
.codiff-markdown-details > summary::-webkit-details-marker {
|
|
@@ -6596,7 +6788,7 @@ html[data-codiff-platform="darwin"] .sidebar {
|
|
|
6596
6788
|
|
|
6597
6789
|
.codiff-markdown-details > summary:before {
|
|
6598
6790
|
content: "▸";
|
|
6599
|
-
|
|
6791
|
+
flex: none;
|
|
6600
6792
|
font-size: 20px;
|
|
6601
6793
|
line-height: .5;
|
|
6602
6794
|
display: inline-block;
|
|
@@ -7294,6 +7486,10 @@ html[data-codiff-platform="darwin"] .sidebar {
|
|
|
7294
7486
|
color: #b8312f;
|
|
7295
7487
|
}
|
|
7296
7488
|
|
|
7489
|
+
.codiff-status-badge.conflicted {
|
|
7490
|
+
color: var(--danger);
|
|
7491
|
+
}
|
|
7492
|
+
|
|
7297
7493
|
.codiff-status-badge.renamed, .codiff-section-badge.staged {
|
|
7298
7494
|
color: #8f5d18;
|
|
7299
7495
|
}
|
|
@@ -7451,6 +7647,75 @@ diffs-container .review-comment-thread {
|
|
|
7451
7647
|
display: flex;
|
|
7452
7648
|
}
|
|
7453
7649
|
|
|
7650
|
+
.resolved-thread-disclosure {
|
|
7651
|
+
border: 1px solid var(--file-border);
|
|
7652
|
+
border-radius: 6px;
|
|
7653
|
+
inline-size: 100%;
|
|
7654
|
+
min-inline-size: 0;
|
|
7655
|
+
overflow: clip;
|
|
7656
|
+
}
|
|
7657
|
+
|
|
7658
|
+
.resolved-thread-toggle {
|
|
7659
|
+
color: var(--muted);
|
|
7660
|
+
cursor: pointer;
|
|
7661
|
+
font: 600 12px/1.3 var(--font-sans);
|
|
7662
|
+
text-align: start;
|
|
7663
|
+
background: #7f7f7f12;
|
|
7664
|
+
border: 0;
|
|
7665
|
+
align-items: center;
|
|
7666
|
+
gap: 7px;
|
|
7667
|
+
min-block-size: 34px;
|
|
7668
|
+
inline-size: 100%;
|
|
7669
|
+
min-inline-size: 0;
|
|
7670
|
+
padding: 7px 9px;
|
|
7671
|
+
display: flex;
|
|
7672
|
+
}
|
|
7673
|
+
|
|
7674
|
+
.resolved-thread-toggle:hover {
|
|
7675
|
+
color: var(--text);
|
|
7676
|
+
background: #7f7f7f1f;
|
|
7677
|
+
}
|
|
7678
|
+
|
|
7679
|
+
.resolved-thread-toggle:focus-visible {
|
|
7680
|
+
box-shadow: 0 0 0 2px var(--tree-selection-focus) inset;
|
|
7681
|
+
outline: 0;
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7684
|
+
.resolved-thread-caret {
|
|
7685
|
+
flex: none;
|
|
7686
|
+
display: block;
|
|
7687
|
+
}
|
|
7688
|
+
|
|
7689
|
+
.resolved-thread-label {
|
|
7690
|
+
color: currentColor;
|
|
7691
|
+
text-overflow: ellipsis;
|
|
7692
|
+
white-space: nowrap;
|
|
7693
|
+
min-inline-size: 0;
|
|
7694
|
+
overflow: hidden;
|
|
7695
|
+
}
|
|
7696
|
+
|
|
7697
|
+
.resolved-thread-count {
|
|
7698
|
+
white-space: nowrap;
|
|
7699
|
+
margin-inline-start: auto;
|
|
7700
|
+
font-weight: 500;
|
|
7701
|
+
}
|
|
7702
|
+
|
|
7703
|
+
.resolved-thread-caret {
|
|
7704
|
+
transition: transform .14s;
|
|
7705
|
+
}
|
|
7706
|
+
|
|
7707
|
+
.resolved-thread-disclosure.expanded .resolved-thread-caret {
|
|
7708
|
+
transform: rotate(180deg);
|
|
7709
|
+
}
|
|
7710
|
+
|
|
7711
|
+
.resolved-thread-content {
|
|
7712
|
+
border-block-start: 1px solid var(--file-border);
|
|
7713
|
+
flex-direction: column;
|
|
7714
|
+
gap: 8px;
|
|
7715
|
+
padding: 10px;
|
|
7716
|
+
display: flex;
|
|
7717
|
+
}
|
|
7718
|
+
|
|
7454
7719
|
.review-comment-thread-footer {
|
|
7455
7720
|
justify-content: flex-end;
|
|
7456
7721
|
align-items: center;
|
|
@@ -7896,37 +8161,23 @@ diffs-container .review-comment-thread {
|
|
|
7896
8161
|
word-break: break-word;
|
|
7897
8162
|
}
|
|
7898
8163
|
|
|
7899
|
-
.review-action-bar {
|
|
7900
|
-
-webkit-app-region: no-drag;
|
|
7901
|
-
z-index: 12;
|
|
7902
|
-
align-items: center;
|
|
7903
|
-
gap: 12px;
|
|
7904
|
-
display: inline-flex;
|
|
7905
|
-
position: fixed;
|
|
7906
|
-
bottom: 16px;
|
|
7907
|
-
right: 16px;
|
|
7908
|
-
}
|
|
7909
|
-
|
|
7910
8164
|
.copy-comments-button {
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
box-shadow: 0 0 0 1px #ffffff29 inset,
|
|
7915
|
-
0 0 0 1px var(--file-border),
|
|
7916
|
-
0 18px 80px -54px #000c,
|
|
7917
|
-
0 16px 46px -30px #000000b8,
|
|
7918
|
-
0 12px 24px -18px #000000e6;
|
|
8165
|
+
-webkit-app-region: no-drag;
|
|
8166
|
+
color: var(--muted);
|
|
8167
|
+
corner-shape: squircle;
|
|
7919
8168
|
cursor: pointer;
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
border-radius:
|
|
8169
|
+
font: 700 11px/1 var(--font-sans);
|
|
8170
|
+
background: none;
|
|
8171
|
+
border: 0;
|
|
8172
|
+
border-radius: 8px;
|
|
8173
|
+
flex: none;
|
|
7924
8174
|
justify-content: center;
|
|
7925
8175
|
align-items: center;
|
|
7926
|
-
|
|
7927
|
-
|
|
8176
|
+
gap: 5px;
|
|
8177
|
+
height: 28px;
|
|
8178
|
+
padding: 0 8px;
|
|
8179
|
+
transition: background .12s, color .12s;
|
|
7928
8180
|
display: inline-flex;
|
|
7929
|
-
transform: scale(1);
|
|
7930
8181
|
}
|
|
7931
8182
|
|
|
7932
8183
|
.review-submit-button {
|
|
@@ -8067,16 +8318,20 @@ diffs-container .review-comment-thread {
|
|
|
8067
8318
|
color: var(--text);
|
|
8068
8319
|
}
|
|
8069
8320
|
|
|
8070
|
-
.copy-comments-button:hover {
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
0 22px 62px -30px #000000d1,
|
|
8074
|
-
0 16px 32px -18px #000000f5;
|
|
8075
|
-
transform: scale(1.05);
|
|
8321
|
+
.copy-comments-button:hover:not(:disabled) {
|
|
8322
|
+
color: var(--sidebar-text);
|
|
8323
|
+
background: #7f7f7f24;
|
|
8076
8324
|
}
|
|
8077
8325
|
|
|
8078
|
-
.copy-comments-button:active {
|
|
8079
|
-
|
|
8326
|
+
.copy-comments-button:active:not(:disabled) {
|
|
8327
|
+
color: var(--sidebar-text);
|
|
8328
|
+
background: #7f7f7f33;
|
|
8329
|
+
}
|
|
8330
|
+
|
|
8331
|
+
.copy-comments-button:disabled {
|
|
8332
|
+
color: var(--muted);
|
|
8333
|
+
cursor: default;
|
|
8334
|
+
opacity: .5;
|
|
8080
8335
|
}
|
|
8081
8336
|
|
|
8082
8337
|
.review-submit-button:disabled {
|
|
@@ -8084,9 +8339,8 @@ diffs-container .review-comment-thread {
|
|
|
8084
8339
|
opacity: .58;
|
|
8085
8340
|
}
|
|
8086
8341
|
|
|
8087
|
-
.copy-comments-
|
|
8088
|
-
|
|
8089
|
-
color: var(--viewed);
|
|
8342
|
+
.copy-comments-count {
|
|
8343
|
+
font: 700 11px/1 var(--font-mono);
|
|
8090
8344
|
}
|
|
8091
8345
|
|
|
8092
8346
|
.copy-comments-icon {
|
|
@@ -8096,7 +8350,7 @@ diffs-container .review-comment-thread {
|
|
|
8096
8350
|
}
|
|
8097
8351
|
|
|
8098
8352
|
.copy-comments-icon.check {
|
|
8099
|
-
transform:
|
|
8353
|
+
transform: none;
|
|
8100
8354
|
}
|
|
8101
8355
|
|
|
8102
8356
|
.review-submit-icon {
|
|
@@ -8162,6 +8416,7 @@ diffs-container .review-comment-thread {
|
|
|
8162
8416
|
|
|
8163
8417
|
.empty-panel code {
|
|
8164
8418
|
color: var(--text);
|
|
8419
|
+
overflow-wrap: anywhere;
|
|
8165
8420
|
}
|
|
8166
8421
|
|
|
8167
8422
|
.empty-panel-menu-path {
|
|
@@ -8346,9 +8601,8 @@ diffs-container .review-comment-thread {
|
|
|
8346
8601
|
padding: 4px 6px;
|
|
8347
8602
|
}
|
|
8348
8603
|
|
|
8349
|
-
.command-bar-overlay {
|
|
8604
|
+
.command-bar-overlay, .open-review-source-overlay {
|
|
8350
8605
|
backdrop-filter: blur(4px);
|
|
8351
|
-
z-index: 100;
|
|
8352
8606
|
background: #ffffff47;
|
|
8353
8607
|
justify-content: center;
|
|
8354
8608
|
align-items: flex-start;
|
|
@@ -8358,28 +8612,35 @@ diffs-container .review-comment-thread {
|
|
|
8358
8612
|
inset: 0;
|
|
8359
8613
|
}
|
|
8360
8614
|
|
|
8361
|
-
|
|
8615
|
+
.command-bar-overlay {
|
|
8616
|
+
z-index: 100;
|
|
8617
|
+
}
|
|
8618
|
+
|
|
8619
|
+
:root[data-theme="dark"] .command-bar-overlay, :root[data-theme="dark"] .open-review-source-overlay {
|
|
8362
8620
|
background: #00000029;
|
|
8363
8621
|
}
|
|
8364
8622
|
|
|
8365
8623
|
@media (prefers-color-scheme: dark) {
|
|
8366
|
-
:root:not([data-theme="light"]) .command-bar-overlay {
|
|
8624
|
+
:root:not([data-theme="light"]) .command-bar-overlay, :root:not([data-theme="light"]) .open-review-source-overlay {
|
|
8367
8625
|
background: #00000029;
|
|
8368
8626
|
}
|
|
8369
8627
|
}
|
|
8370
8628
|
|
|
8371
|
-
.command-bar {
|
|
8629
|
+
.command-bar, .open-review-source-dialog {
|
|
8372
8630
|
backdrop-filter: blur(28px) saturate(1.4);
|
|
8373
8631
|
background: color-mix(in srgb, var(--code-bg) 88%, transparent);
|
|
8374
8632
|
border: 1px solid var(--file-border);
|
|
8375
8633
|
corner-shape: squircle;
|
|
8376
8634
|
border-radius: 28px;
|
|
8635
|
+
box-shadow: inset 0 0 0 1px #ffffff1f, 0 18px 80px -54px #000000c7, 0 16px 46px -30px #000000b8, 0 12px 24px -18px #000000e6;
|
|
8636
|
+
}
|
|
8637
|
+
|
|
8638
|
+
.command-bar {
|
|
8377
8639
|
flex-direction: column;
|
|
8378
8640
|
width: min(520px, 90vw);
|
|
8379
8641
|
max-height: 400px;
|
|
8380
8642
|
display: flex;
|
|
8381
8643
|
overflow: hidden;
|
|
8382
|
-
box-shadow: inset 0 0 0 1px #ffffff1f, 0 18px 80px -54px #000000c7, 0 16px 46px -30px #000000b8, 0 12px 24px -18px #000000e6;
|
|
8383
8644
|
}
|
|
8384
8645
|
|
|
8385
8646
|
.command-bar-input {
|
|
@@ -8467,8 +8728,87 @@ diffs-container .review-comment-thread {
|
|
|
8467
8728
|
padding: 3px 6px;
|
|
8468
8729
|
}
|
|
8469
8730
|
|
|
8731
|
+
.open-review-source-overlay {
|
|
8732
|
+
z-index: 101;
|
|
8733
|
+
padding-inline: 16px;
|
|
8734
|
+
}
|
|
8735
|
+
|
|
8736
|
+
.open-review-source-dialog {
|
|
8737
|
+
flex-direction: column;
|
|
8738
|
+
gap: 18px;
|
|
8739
|
+
width: min(520px, 100%);
|
|
8740
|
+
padding: 20px;
|
|
8741
|
+
display: flex;
|
|
8742
|
+
box-shadow: 0 10px 30px #00000029;
|
|
8743
|
+
}
|
|
8744
|
+
|
|
8745
|
+
.open-review-source-heading {
|
|
8746
|
+
gap: 5px;
|
|
8747
|
+
display: grid;
|
|
8748
|
+
}
|
|
8749
|
+
|
|
8750
|
+
.open-review-source-heading h2 {
|
|
8751
|
+
font: 600 16px/1.35 var(--font-sans);
|
|
8752
|
+
}
|
|
8753
|
+
|
|
8754
|
+
.open-review-source-heading p, .open-review-source-error {
|
|
8755
|
+
color: var(--muted);
|
|
8756
|
+
font: 13px/1.4 var(--font-sans);
|
|
8757
|
+
}
|
|
8758
|
+
|
|
8759
|
+
.open-review-source-field {
|
|
8760
|
+
gap: 7px;
|
|
8761
|
+
display: grid;
|
|
8762
|
+
}
|
|
8763
|
+
|
|
8764
|
+
.open-review-source-label {
|
|
8765
|
+
font: 600 12px/1.35 var(--font-sans);
|
|
8766
|
+
}
|
|
8767
|
+
|
|
8768
|
+
.open-review-source-input {
|
|
8769
|
+
color: var(--text);
|
|
8770
|
+
corner-shape: squircle;
|
|
8771
|
+
font: 14px/1.35 var(--font-sans);
|
|
8772
|
+
background: #7f7f7f1a;
|
|
8773
|
+
border: 0;
|
|
8774
|
+
border-radius: 17px;
|
|
8775
|
+
outline: none;
|
|
8776
|
+
width: 100%;
|
|
8777
|
+
height: 34px;
|
|
8778
|
+
padding: 0 12px;
|
|
8779
|
+
}
|
|
8780
|
+
|
|
8781
|
+
.open-review-source-input:focus {
|
|
8782
|
+
box-shadow: 0 0 0 2px #3d87f552;
|
|
8783
|
+
}
|
|
8784
|
+
|
|
8785
|
+
.open-review-source-input::placeholder {
|
|
8786
|
+
color: var(--muted);
|
|
8787
|
+
}
|
|
8788
|
+
|
|
8789
|
+
.open-review-source-error {
|
|
8790
|
+
color: var(--danger);
|
|
8791
|
+
}
|
|
8792
|
+
|
|
8793
|
+
.open-review-source-actions {
|
|
8794
|
+
justify-content: space-between;
|
|
8795
|
+
display: flex;
|
|
8796
|
+
}
|
|
8797
|
+
|
|
8470
8798
|
@media (width <= 720px) {
|
|
8471
|
-
.
|
|
8799
|
+
.share-shell.sidebar-auto {
|
|
8800
|
+
grid-template-columns: minmax(0, 1fr);
|
|
8801
|
+
}
|
|
8802
|
+
|
|
8803
|
+
.share-shell.sidebar-auto .sidebar, .share-shell.sidebar-auto .sidebar-resizer {
|
|
8804
|
+
display: none;
|
|
8805
|
+
}
|
|
8806
|
+
|
|
8807
|
+
.share-shell.sidebar-auto > .review {
|
|
8808
|
+
grid-column: 1;
|
|
8809
|
+
}
|
|
8810
|
+
|
|
8811
|
+
.review-top-bar-repository-slot, .review-top-bar-center, .review-top-bar-context {
|
|
8472
8812
|
display: none;
|
|
8473
8813
|
}
|
|
8474
8814
|
}
|