mbeditor 0.14.1 → 0.14.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +66 -0
- data/app/assets/javascripts/mbeditor/application.js +5 -1
- data/app/assets/javascripts/mbeditor/collaboration_identity.js +4 -2
- data/app/assets/javascripts/mbeditor/collaboration_service.js +74 -2
- data/app/assets/javascripts/mbeditor/components/AiRoundTripModal.js +452 -0
- data/app/assets/javascripts/mbeditor/components/ChangelogView.js +1 -1
- data/app/assets/javascripts/mbeditor/components/CombinedFileView.js +44 -29
- data/app/assets/javascripts/mbeditor/components/DiffViewer.js +2 -1
- data/app/assets/javascripts/mbeditor/components/EditorPanel.js +33 -27
- data/app/assets/javascripts/mbeditor/components/FileHistoryPanel.js +2 -7
- data/app/assets/javascripts/mbeditor/components/FileTree.js +144 -4
- data/app/assets/javascripts/mbeditor/components/GitPanel.js +1 -1
- data/app/assets/javascripts/mbeditor/components/ImportConflictModal.js +7 -68
- data/app/assets/javascripts/mbeditor/components/ImportDialog.js +2 -16
- data/app/assets/javascripts/mbeditor/components/MbeditorApp.js +368 -471
- data/app/assets/javascripts/mbeditor/components/ModalDialog.js +203 -0
- data/app/assets/javascripts/mbeditor/components/PastePlaceModal.js +1 -9
- data/app/assets/javascripts/mbeditor/components/Popover.js +88 -0
- data/app/assets/javascripts/mbeditor/components/PopupMenu.js +166 -0
- data/app/assets/javascripts/mbeditor/components/ProblemsPanel.js +8 -4
- data/app/assets/javascripts/mbeditor/components/QuickOpenDialog.js +5 -7
- data/app/assets/javascripts/mbeditor/components/SettingsModal.js +3 -14
- data/app/assets/javascripts/mbeditor/components/ShortcutHelp.js +5 -26
- data/app/assets/javascripts/mbeditor/components/TabBar.js +15 -32
- data/app/assets/javascripts/mbeditor/components/TestResultsPanel.js +2 -7
- data/app/assets/javascripts/mbeditor/editor_plugins.js +3 -23
- data/app/assets/javascripts/mbeditor/file_service.js +1 -1
- data/app/assets/javascripts/mbeditor/git_service.js +0 -7
- data/app/assets/javascripts/mbeditor/patch_select.js +156 -0
- data/app/assets/javascripts/mbeditor/tab_manager.js +22 -0
- data/app/assets/stylesheets/mbeditor/application.css +7 -110
- data/app/assets/stylesheets/mbeditor/editor.css +200 -194
- data/app/assets/stylesheets/mbeditor/glass.css +1 -1
- data/app/channels/mbeditor/collaboration_channel.rb +24 -5
- data/app/controllers/mbeditor/editors_controller.rb +75 -38
- data/app/controllers/mbeditor/git_controller.rb +1 -12
- data/app/services/mbeditor/ai_bundle_service.rb +181 -0
- data/app/services/mbeditor/archive_service.rb +43 -6
- data/app/services/mbeditor/availability_probe.rb +2 -2
- data/app/services/mbeditor/code_search_service.rb +1 -3
- data/app/services/mbeditor/collaboration_doc_store.rb +37 -1
- data/app/services/mbeditor/exclusion_matcher.rb +0 -4
- data/app/services/mbeditor/file_import_service.rb +4 -1
- data/app/services/mbeditor/file_operation_service.rb +3 -3
- data/app/services/mbeditor/git_service.rb +11 -45
- data/app/services/mbeditor/js_definition_service.rb +1 -0
- data/app/services/mbeditor/model_graph_service.rb +1 -0
- data/app/services/mbeditor/patch_apply_service.rb +185 -0
- data/app/services/mbeditor/rails_related_files_service.rb +1 -1
- data/app/services/mbeditor/redmine_config_error.rb +6 -0
- data/app/services/mbeditor/redmine_disabled_error.rb +10 -0
- data/app/services/mbeditor/redmine_service.rb +0 -8
- data/app/services/mbeditor/ruby_definition_service.rb +1 -0
- data/app/services/mbeditor/schema_service.rb +1 -0
- data/app/services/mbeditor/test_runner_service.rb +1 -1
- data/lib/mbeditor/rack/silence_ping_request.rb +14 -14
- data/lib/mbeditor/route_map.rb +5 -2
- data/lib/mbeditor/ruby_lsp_client.rb +7 -26
- data/lib/mbeditor/version.rb +1 -1
- data/public/monaco-editor/VERSIONS +2 -1
- data/public/monaco-editor/monaco.js +226 -226
- metadata +11 -4
- data/app/assets/javascripts/mbeditor/components/CommitGraph.js +0 -65
- data/app/services/mbeditor/git_commit_graph_service.rb +0 -62
|
@@ -297,7 +297,6 @@ html, body, #mbeditor-root {
|
|
|
297
297
|
flex-shrink: 0;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
|
|
301
300
|
/* ── The gutter ──────────────────────────────────────────────
|
|
302
301
|
One draggable strip, always in the gap between two cards, never inside
|
|
303
302
|
either of them. 6px in its thin dimension and transparent: wider reads as a
|
|
@@ -368,7 +367,6 @@ html, body, #mbeditor-root {
|
|
|
368
367
|
gap: 6px;
|
|
369
368
|
}
|
|
370
369
|
|
|
371
|
-
|
|
372
370
|
.ide-sidebar-content {
|
|
373
371
|
flex: 1;
|
|
374
372
|
overflow: hidden;
|
|
@@ -386,9 +384,12 @@ html, body, #mbeditor-root {
|
|
|
386
384
|
overflow-x: hidden;
|
|
387
385
|
}
|
|
388
386
|
|
|
389
|
-
.ide-sidebar-scrollable
|
|
390
|
-
|
|
391
|
-
.ide-sidebar-scrollable::-webkit-scrollbar
|
|
387
|
+
.ide-sidebar-scrollable { scrollbar-color: var(--ide-scrollbar) transparent; }
|
|
388
|
+
@supports not (scrollbar-color: auto) {
|
|
389
|
+
.ide-sidebar-scrollable::-webkit-scrollbar { width: 6px; }
|
|
390
|
+
.ide-sidebar-scrollable::-webkit-scrollbar-track { background: transparent; }
|
|
391
|
+
.ide-sidebar-scrollable::-webkit-scrollbar-thumb { background: var(--ide-scrollbar); border-radius: 3px; }
|
|
392
|
+
}
|
|
392
393
|
|
|
393
394
|
/* ── File Tree ────────────────────────────────────────────── */
|
|
394
395
|
.file-tree-root { padding: 4px 0; }
|
|
@@ -412,6 +413,10 @@ html, body, #mbeditor-root {
|
|
|
412
413
|
.tree-item.active { background: var(--ide-active-bg); }
|
|
413
414
|
.tree-item.selected { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ide-accent) 35%, transparent); background: color-mix(in srgb, var(--ide-accent) 8%, transparent); }
|
|
414
415
|
.tree-item.active.selected { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ide-accent) 55%, transparent); }
|
|
416
|
+
/* The keyboard's current row (aria-activedescendant), shown only while arrow
|
|
417
|
+
keys are driving the focused tree: FileTree adds .kbd-nav on a handled key
|
|
418
|
+
and drops it on mousedown. */
|
|
419
|
+
.file-tree.kbd-nav:focus .tree-item.is-cursor { outline: 1px solid var(--ide-accent-fg); outline-offset: -1px; }
|
|
415
420
|
.tree-item.drag-over { background: rgba(100, 160, 220, 0.25); box-shadow: inset 0 0 0 1px rgba(100, 160, 220, 0.7); }
|
|
416
421
|
/* External file drop (import) — green, to read as "add" rather than "move" */
|
|
417
422
|
.tree-item.drag-over-external { background: rgba(120, 200, 140, 0.22); box-shadow: inset 0 0 0 1px rgba(120, 200, 140, 0.75); }
|
|
@@ -523,8 +528,18 @@ html, body, #mbeditor-root {
|
|
|
523
528
|
flex-shrink: 0;
|
|
524
529
|
}
|
|
525
530
|
|
|
531
|
+
/* The one deliberate ::-webkit-scrollbar holdout. The standard properties
|
|
532
|
+
cannot express a 3px bar — `thin` takes ~8px of layout out of a 35px row —
|
|
533
|
+
so Chrome/Safari keep the WebKit pseudo-elements here. They only honour
|
|
534
|
+
those while the element's scrollbar-color and scrollbar-width are both
|
|
535
|
+
`auto`, hence the reset of the inherited/universal values. Engines without
|
|
536
|
+
::-webkit-scrollbar (Firefox) get the standard properties instead. */
|
|
537
|
+
.tab-bar { scrollbar-color: auto; scrollbar-width: auto; }
|
|
526
538
|
.tab-bar::-webkit-scrollbar { height: 3px; }
|
|
527
539
|
.tab-bar::-webkit-scrollbar-thumb { background: var(--ide-hover-bg); }
|
|
540
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
541
|
+
.tab-bar { scrollbar-color: var(--ide-hover-bg) transparent; scrollbar-width: thin; }
|
|
542
|
+
}
|
|
528
543
|
|
|
529
544
|
.tab-new-file-btn {
|
|
530
545
|
display: flex;
|
|
@@ -708,7 +723,6 @@ html, body, #mbeditor-root {
|
|
|
708
723
|
border-bottom: 1px solid var(--ide-panel-bg-alt);
|
|
709
724
|
user-select: none;
|
|
710
725
|
}
|
|
711
|
-
.search-results-empty { padding: 12px 8px; font-size: 12px; color: var(--ide-text-muted); }
|
|
712
726
|
.search-loading-more {
|
|
713
727
|
padding: 10px;
|
|
714
728
|
font-size: 11px;
|
|
@@ -717,17 +731,71 @@ html, body, #mbeditor-root {
|
|
|
717
731
|
user-select: none;
|
|
718
732
|
}
|
|
719
733
|
|
|
720
|
-
/* ──
|
|
721
|
-
|
|
734
|
+
/* ── Modal dialog shell (components/ModalDialog.js) ──────── */
|
|
735
|
+
/* The native <dialog> is an unstyled shell exactly the size of the panel it
|
|
736
|
+
wraps: the panel classes below (.schema-modal, .shelp-panel, …) keep all the
|
|
737
|
+
visual styling, and a pointer outside the dialog box is a backdrop click.
|
|
738
|
+
Top layer replaces the z-index ladder the overlay divs used to need.
|
|
739
|
+
Vendored pico.classless.css styles every <dialog> as its own full-viewport
|
|
740
|
+
flex overlay (inset 0, min-width/height 100%, tinted background, blur).
|
|
741
|
+
Left in place, the dialog box covers the whole screen, so no click ever
|
|
742
|
+
lands "outside" it and the backdrop never dismisses — hence the explicit
|
|
743
|
+
reset of position, size, display and backdrop-filter back to UA centring. */
|
|
744
|
+
dialog.mb-dialog {
|
|
745
|
+
display: block;
|
|
722
746
|
position: fixed;
|
|
723
747
|
inset: 0;
|
|
748
|
+
margin: auto;
|
|
749
|
+
width: fit-content;
|
|
750
|
+
height: fit-content;
|
|
751
|
+
min-width: 0;
|
|
752
|
+
min-height: 0;
|
|
753
|
+
max-width: none;
|
|
754
|
+
max-height: none;
|
|
755
|
+
padding: 0;
|
|
756
|
+
border: 0;
|
|
757
|
+
background: transparent;
|
|
758
|
+
-webkit-backdrop-filter: none;
|
|
759
|
+
backdrop-filter: none;
|
|
760
|
+
color: inherit;
|
|
761
|
+
overflow: visible;
|
|
762
|
+
}
|
|
763
|
+
dialog.mb-dialog:not([open]) { display: none; }
|
|
764
|
+
/* Both rules: without them a scroll gesture over the backdrop or past the end
|
|
765
|
+
of the dialog's content chains to the page behind. */
|
|
766
|
+
dialog.mb-dialog:modal { overscroll-behavior: contain; }
|
|
767
|
+
dialog.mb-dialog::backdrop {
|
|
724
768
|
background: rgba(0, 0, 0, 0.55);
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
align-items: center;
|
|
728
|
-
justify-content: center;
|
|
769
|
+
overflow: hidden;
|
|
770
|
+
overscroll-behavior: contain;
|
|
729
771
|
}
|
|
772
|
+
dialog.mb-dialog-light::backdrop { background: rgba(0, 0, 0, 0.45); }
|
|
730
773
|
|
|
774
|
+
/* ── Popover shell (components/Popover.js) ───────────────── */
|
|
775
|
+
/* Undo the UA [popover] defaults (centred via inset:0 + margin:auto, Canvas
|
|
776
|
+
colours, a medium border, padding, overflow:auto) so the caller's inline
|
|
777
|
+
top/left/right place it and the component class styles it. :where() keeps
|
|
778
|
+
this at zero specificity, so any component rule wins whatever its order. */
|
|
779
|
+
:where(.mb-popover[popover]) {
|
|
780
|
+
inset: auto;
|
|
781
|
+
margin: 0;
|
|
782
|
+
padding: 0;
|
|
783
|
+
border: 0;
|
|
784
|
+
background: none;
|
|
785
|
+
color: inherit;
|
|
786
|
+
overflow: visible;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/* MbeditorDialogs.confirm / .prompt — reuses the .schema-modal panel. */
|
|
790
|
+
.mb-confirm { min-width: 360px; max-width: min(520px, 94vw); }
|
|
791
|
+
.mb-confirm .schema-modal-body { padding: 14px 16px; }
|
|
792
|
+
.mb-confirm-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
|
|
793
|
+
.mb-confirm-message + .import-dest-input { margin-top: 10px; }
|
|
794
|
+
.mb-confirm .import-dest-input { width: 100%; box-sizing: border-box; }
|
|
795
|
+
/* pico.classless.css makes [type=submit] a full-width block. */
|
|
796
|
+
.mb-confirm .import-conflict-btn { width: auto; margin: 0; }
|
|
797
|
+
|
|
798
|
+
/* ── Shortcut Help Drawer ────────────────────────────────── */
|
|
731
799
|
.shelp-panel {
|
|
732
800
|
background: var(--ide-panel-bg);
|
|
733
801
|
color: var(--ide-text);
|
|
@@ -1051,13 +1119,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1051
1119
|
.statusbar-btn:hover { background: color-mix(in srgb, var(--ide-accent-text) 15%, transparent); }
|
|
1052
1120
|
.statusbar-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
1053
1121
|
|
|
1054
|
-
.titlebar-git-btn {
|
|
1055
|
-
min-width: 62px;
|
|
1056
|
-
justify-content: center;
|
|
1057
|
-
position: relative;
|
|
1058
|
-
z-index: 1;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
1122
|
.statusbar-sep { width: 1px; height: 14px; background: color-mix(in srgb, var(--ide-accent-text) 20%, transparent); margin: 0 2px; }
|
|
1062
1123
|
|
|
1063
1124
|
/* ── Collaboration presence ────────────────────────────────────────────────
|
|
@@ -1078,10 +1139,10 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1078
1139
|
/* Own popover rather than a title attribute: native tooltips wait ~1s before
|
|
1079
1140
|
appearing, cannot show the colour swatch, and collapse the newlines this
|
|
1080
1141
|
content needs. Fixed positioning is anchored from the chip's rect at hover
|
|
1081
|
-
time — the titlebar never scrolls, so there is nothing to keep in sync.
|
|
1142
|
+
time — the titlebar never scrolls, so there is nothing to keep in sync.
|
|
1143
|
+
Rendered as a manual popover (top layer), so it needs no z-index. */
|
|
1082
1144
|
.collab-hovercard {
|
|
1083
1145
|
position: fixed;
|
|
1084
|
-
z-index: 4000;
|
|
1085
1146
|
min-width: 180px;
|
|
1086
1147
|
max-width: 320px;
|
|
1087
1148
|
padding: 8px 10px;
|
|
@@ -1141,10 +1202,10 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1141
1202
|
}
|
|
1142
1203
|
.collab-avatar-overflow { position: relative; }
|
|
1143
1204
|
/* Fixed and anchored from the button's rect, like .collab-hovercard: inside the
|
|
1144
|
-
title bar it was painted under the editor whatever its z-index.
|
|
1205
|
+
title bar it was painted under the editor whatever its z-index. A manual
|
|
1206
|
+
popover now, so the top layer handles stacking. */
|
|
1145
1207
|
.collab-overflow-popover {
|
|
1146
1208
|
position: fixed;
|
|
1147
|
-
z-index: 4000;
|
|
1148
1209
|
min-width: 180px;
|
|
1149
1210
|
max-width: 260px;
|
|
1150
1211
|
max-height: 240px;
|
|
@@ -1223,13 +1284,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1223
1284
|
min-height: 0;
|
|
1224
1285
|
}
|
|
1225
1286
|
|
|
1226
|
-
.search-input-wrap {
|
|
1227
|
-
display: flex;
|
|
1228
|
-
flex-shrink: 0;
|
|
1229
|
-
align-items: center;
|
|
1230
|
-
gap: 4px;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
1287
|
.search-input-shell {
|
|
1234
1288
|
width: 100%;
|
|
1235
1289
|
position: relative;
|
|
@@ -1303,34 +1357,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1303
1357
|
|
|
1304
1358
|
/* ── old .search-options-row / .search-option-btn removed ── */
|
|
1305
1359
|
|
|
1306
|
-
/* Use .search-panel ancestor for higher specificity than button:not(.pico-btn) */
|
|
1307
|
-
.search-panel .search-btn {
|
|
1308
|
-
flex-shrink: 0;
|
|
1309
|
-
width: 26px;
|
|
1310
|
-
height: 26px;
|
|
1311
|
-
padding: 0;
|
|
1312
|
-
margin: 0;
|
|
1313
|
-
border: 1px solid var(--ide-border-input);
|
|
1314
|
-
border-radius: 4px;
|
|
1315
|
-
background: var(--ide-input-bg);
|
|
1316
|
-
color: var(--ide-text-muted);
|
|
1317
|
-
font-size: 12px;
|
|
1318
|
-
display: inline-flex;
|
|
1319
|
-
align-items: center;
|
|
1320
|
-
justify-content: center;
|
|
1321
|
-
cursor: pointer;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
.search-panel .search-btn:hover {
|
|
1325
|
-
color: var(--ide-text);
|
|
1326
|
-
border-color: var(--ide-accent-fg);
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
.search-panel .search-btn:disabled {
|
|
1330
|
-
opacity: 0.5;
|
|
1331
|
-
cursor: not-allowed;
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
1360
|
.search-input {
|
|
1335
1361
|
width: 100%;
|
|
1336
1362
|
margin-bottom: 0;
|
|
@@ -1528,15 +1554,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1528
1554
|
border-radius: 2px;
|
|
1529
1555
|
}
|
|
1530
1556
|
|
|
1531
|
-
.search-results-loading-more {
|
|
1532
|
-
padding: 8px 10px;
|
|
1533
|
-
font-size: 11px;
|
|
1534
|
-
color: var(--ide-text-muted);
|
|
1535
|
-
display: flex;
|
|
1536
|
-
align-items: center;
|
|
1537
|
-
gap: 6px;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
1557
|
/* ── Rails Panel ─────────────────────────────────────────── */
|
|
1541
1558
|
.rails-panel {
|
|
1542
1559
|
display: flex;
|
|
@@ -1553,20 +1570,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1553
1570
|
font-size: 12px;
|
|
1554
1571
|
}
|
|
1555
1572
|
|
|
1556
|
-
.rails-group {
|
|
1557
|
-
margin-bottom: 4px;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
.rails-group-title {
|
|
1561
|
-
padding: 4px 12px 2px;
|
|
1562
|
-
font-size: 10px;
|
|
1563
|
-
font-weight: 700;
|
|
1564
|
-
letter-spacing: 0.08em;
|
|
1565
|
-
text-transform: uppercase;
|
|
1566
|
-
color: var(--ide-text-muted);
|
|
1567
|
-
user-select: none;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
1573
|
.rails-group-item {
|
|
1571
1574
|
display: flex;
|
|
1572
1575
|
align-items: center;
|
|
@@ -1584,6 +1587,11 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1584
1587
|
background: var(--ide-hover-bg);
|
|
1585
1588
|
}
|
|
1586
1589
|
|
|
1590
|
+
.rails-group-item-open {
|
|
1591
|
+
outline: 1px solid var(--ide-accent);
|
|
1592
|
+
outline-offset: -1px;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1587
1595
|
.rails-group-item-name {
|
|
1588
1596
|
overflow: hidden;
|
|
1589
1597
|
text-overflow: ellipsis;
|
|
@@ -1642,15 +1650,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
1642
1650
|
}
|
|
1643
1651
|
|
|
1644
1652
|
/* ── Schema modal ─────────────────────────────────────────── */
|
|
1645
|
-
.schema-modal-overlay {
|
|
1646
|
-
position: fixed;
|
|
1647
|
-
inset: 0;
|
|
1648
|
-
background: rgba(0,0,0,0.55);
|
|
1649
|
-
z-index: 9000;
|
|
1650
|
-
display: flex;
|
|
1651
|
-
align-items: center;
|
|
1652
|
-
justify-content: center;
|
|
1653
|
-
}
|
|
1654
1653
|
.schema-modal {
|
|
1655
1654
|
background: var(--ide-bg, #1e1e1e);
|
|
1656
1655
|
border: 1px solid var(--ide-border, #3c3c3c);
|
|
@@ -2367,7 +2366,8 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2367
2366
|
/* Nothing to click, so nothing that looks clickable. */
|
|
2368
2367
|
.collapsible-header-static { cursor: default; }
|
|
2369
2368
|
.collapsible-header-static:hover { background: none; }
|
|
2370
|
-
|
|
2369
|
+
/* A sticky header still needs its own fill, or scrolled rows show through it. */
|
|
2370
|
+
.ide-sidebar-scrollable .collapsible-header-static:hover { background: var(--ide-panel-bg); }
|
|
2371
2371
|
|
|
2372
2372
|
.collapsible-toggle {
|
|
2373
2373
|
font-size: 8px;
|
|
@@ -2462,9 +2462,12 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2462
2462
|
overflow-y: auto;
|
|
2463
2463
|
overflow-x: hidden;
|
|
2464
2464
|
}
|
|
2465
|
-
.ide-sidebar-fixed .collapsible-content
|
|
2466
|
-
|
|
2467
|
-
.ide-sidebar-fixed .collapsible-content::-webkit-scrollbar
|
|
2465
|
+
.ide-sidebar-fixed .collapsible-content { scrollbar-color: var(--ide-scrollbar) transparent; }
|
|
2466
|
+
@supports not (scrollbar-color: auto) {
|
|
2467
|
+
.ide-sidebar-fixed .collapsible-content::-webkit-scrollbar { width: 6px; }
|
|
2468
|
+
.ide-sidebar-fixed .collapsible-content::-webkit-scrollbar-track { background: transparent; }
|
|
2469
|
+
.ide-sidebar-fixed .collapsible-content::-webkit-scrollbar-thumb { background: var(--ide-scrollbar); border-radius: 3px; }
|
|
2470
|
+
}
|
|
2468
2471
|
|
|
2469
2472
|
.open-editors-group-header {
|
|
2470
2473
|
font-size: 10px;
|
|
@@ -2709,8 +2712,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2709
2712
|
font-style: italic;
|
|
2710
2713
|
}
|
|
2711
2714
|
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
2715
|
.project-action-btn {
|
|
2715
2716
|
width: 24px;
|
|
2716
2717
|
height: 24px;
|
|
@@ -2744,8 +2745,8 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2744
2745
|
|
|
2745
2746
|
/* Context menu */
|
|
2746
2747
|
.context-menu {
|
|
2748
|
+
/* Rendered as a popover (top layer): no z-index to keep ahead of. */
|
|
2747
2749
|
position: fixed;
|
|
2748
|
-
z-index: 9999;
|
|
2749
2750
|
min-width: 180px;
|
|
2750
2751
|
background: var(--ide-panel-bg);
|
|
2751
2752
|
border: 1px solid var(--ide-border-input);
|
|
@@ -2757,25 +2758,50 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2757
2758
|
user-select: none;
|
|
2758
2759
|
}
|
|
2759
2760
|
|
|
2760
|
-
.
|
|
2761
|
+
/* Items are <button>s (PopupMenu.js). Two classes deep so the reset beats
|
|
2762
|
+
pico.classless's button rules (background, border, padding, focus shadow). */
|
|
2763
|
+
.context-menu .context-menu-item {
|
|
2764
|
+
appearance: none;
|
|
2761
2765
|
display: flex;
|
|
2762
2766
|
align-items: center;
|
|
2763
2767
|
gap: 8px;
|
|
2768
|
+
inline-size: 100%;
|
|
2769
|
+
margin: 0;
|
|
2764
2770
|
padding: 6px 14px;
|
|
2771
|
+
border: 0;
|
|
2772
|
+
border-radius: 0;
|
|
2773
|
+
background: transparent;
|
|
2774
|
+
box-shadow: none;
|
|
2775
|
+
color: inherit;
|
|
2776
|
+
font: inherit;
|
|
2777
|
+
text-align: start;
|
|
2765
2778
|
cursor: pointer;
|
|
2766
2779
|
white-space: nowrap;
|
|
2767
2780
|
}
|
|
2768
2781
|
|
|
2769
|
-
|
|
2782
|
+
/* Hover moves focus onto the item (PopupMenu), so these are one item. While
|
|
2783
|
+
the keyboard owns the menu, an item merely under the pointer stays plain. */
|
|
2784
|
+
.context-menu .context-menu-item:hover,
|
|
2785
|
+
.context-menu .context-menu-item:focus-visible {
|
|
2770
2786
|
background: var(--ide-active-bg);
|
|
2771
2787
|
color: #ffffff;
|
|
2772
2788
|
}
|
|
2773
2789
|
|
|
2774
|
-
.context-menu-item-
|
|
2790
|
+
.context-menu:has(.context-menu-item:focus-visible) .context-menu-item:hover:not(:focus-visible) {
|
|
2791
|
+
background: transparent;
|
|
2792
|
+
color: inherit;
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
.context-menu .context-menu-item-danger:hover,
|
|
2796
|
+
.context-menu .context-menu-item-danger:focus-visible {
|
|
2775
2797
|
background: rgba(244, 135, 113, 0.15);
|
|
2776
2798
|
color: var(--ide-danger);
|
|
2777
2799
|
}
|
|
2778
2800
|
|
|
2801
|
+
.context-menu-group:focus {
|
|
2802
|
+
outline: none;
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2779
2805
|
.context-menu-icon {
|
|
2780
2806
|
width: 14px;
|
|
2781
2807
|
text-align: center;
|
|
@@ -2784,30 +2810,11 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2784
2810
|
opacity: 0.8;
|
|
2785
2811
|
}
|
|
2786
2812
|
|
|
2787
|
-
.context-menu-divider {
|
|
2813
|
+
.context-menu .context-menu-divider {
|
|
2788
2814
|
height: 1px;
|
|
2789
|
-
background: var(--ide-border);
|
|
2790
2815
|
margin: 4px 0;
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
.ide-tab-context-menu-item {
|
|
2794
|
-
padding: 6px 14px;
|
|
2795
|
-
cursor: pointer;
|
|
2796
|
-
color: #ccc;
|
|
2797
|
-
font-size: 12px;
|
|
2798
|
-
display: flex;
|
|
2799
|
-
align-items: center;
|
|
2800
|
-
gap: 8px;
|
|
2801
|
-
background: transparent;
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
.ide-tab-context-menu-item:hover {
|
|
2805
|
-
background: #094771;
|
|
2806
|
-
}
|
|
2807
|
-
|
|
2808
|
-
.ide-tab-context-menu-item i {
|
|
2809
|
-
width: 14px;
|
|
2810
|
-
text-align: center;
|
|
2816
|
+
border: 0;
|
|
2817
|
+
background: var(--ide-border);
|
|
2811
2818
|
}
|
|
2812
2819
|
|
|
2813
2820
|
.collapsible-content {
|
|
@@ -2830,16 +2837,10 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2830
2837
|
window, not a centred modal. The rows are 22px and single-line — the path
|
|
2831
2838
|
sits beside the name rather than under it, which is what lets a full
|
|
2832
2839
|
viewport of results be scanned without scrolling. */
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
display: flex;
|
|
2838
|
-
align-items: flex-start;
|
|
2839
|
-
justify-content: center;
|
|
2840
|
-
padding-top: 6px;
|
|
2841
|
-
z-index: 9999;
|
|
2842
|
-
}
|
|
2840
|
+
/* Quick Open is a ModalDialog pinned to the top like VS Code's, over a
|
|
2841
|
+
lighter backdrop than the centred dialogs. */
|
|
2842
|
+
dialog.mb-dialog.mb-dialog-top { margin: 6px auto auto; }
|
|
2843
|
+
dialog.mb-dialog-top::backdrop { background: rgba(0, 0, 0, 0.35); }
|
|
2843
2844
|
|
|
2844
2845
|
/* Always a frosted panel — VS Code's Quick Open floats over the editor, not
|
|
2845
2846
|
inside it, so it stays readable whether or not the glass theme is on. */
|
|
@@ -2986,42 +2987,21 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
2986
2987
|
.pdf-icon { color: var(--ide-danger) !important; }
|
|
2987
2988
|
|
|
2988
2989
|
/* ── Scrollbars ────────────────────────────────────────────── */
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
::-webkit-scrollbar
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
background: var(--ide-
|
|
3000
|
-
|
|
3001
|
-
border-radius: 6px;
|
|
3002
|
-
padding: 8px 14px;
|
|
3003
|
-
font-size: 12px;
|
|
3004
|
-
color: var(--ide-text);
|
|
3005
|
-
z-index: 10000;
|
|
3006
|
-
box-shadow: 0 4px 16px rgba(0,0,0,0.5);
|
|
3007
|
-
animation: toast-in 0.15s ease;
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
@keyframes toast-in {
|
|
3011
|
-
from { opacity: 0; transform: translateY(8px); }
|
|
3012
|
-
to { opacity: 1; transform: translateY(0); }
|
|
2990
|
+
/* Standard properties. scrollbar-color inherits, so :root colours every
|
|
2991
|
+
native scrollbar; scrollbar-width does not, hence the universal rule (zero
|
|
2992
|
+
specificity, so any component rule overrides it). Where these apply, Chrome
|
|
2993
|
+
and Safari ignore ::-webkit-scrollbar, so the WebKit rules are only the
|
|
2994
|
+
fallback for engines without scrollbar-color. */
|
|
2995
|
+
:root { scrollbar-color: var(--ide-scrollbar) var(--ide-bg); }
|
|
2996
|
+
* { scrollbar-width: thin; }
|
|
2997
|
+
@supports not (scrollbar-color: auto) {
|
|
2998
|
+
::-webkit-scrollbar { width: 8px; height: 8px; }
|
|
2999
|
+
::-webkit-scrollbar-track { background: var(--ide-bg); }
|
|
3000
|
+
::-webkit-scrollbar-thumb { background: var(--ide-scrollbar); border-radius: 4px; }
|
|
3001
|
+
::-webkit-scrollbar-thumb:hover { background: var(--ide-hover-bg); }
|
|
3013
3002
|
}
|
|
3014
3003
|
|
|
3015
3004
|
/* ── Draft restore dialog ───────────────────────────────────── */
|
|
3016
|
-
.ide-draft-restore-overlay {
|
|
3017
|
-
position: fixed;
|
|
3018
|
-
inset: 0;
|
|
3019
|
-
background: rgba(0,0,0,0.55);
|
|
3020
|
-
z-index: 10001;
|
|
3021
|
-
display: flex;
|
|
3022
|
-
align-items: center;
|
|
3023
|
-
justify-content: center;
|
|
3024
|
-
}
|
|
3025
3005
|
.ide-draft-restore-dialog {
|
|
3026
3006
|
background: var(--ide-panel-bg-alt);
|
|
3027
3007
|
border: 1px solid var(--ide-border-input);
|
|
@@ -3080,16 +3060,6 @@ body.mbeditor-migration-pending .ide-statusbar {
|
|
|
3080
3060
|
/* ══ SETTINGS MODAL ═════════════════════════════════════════════════════════
|
|
3081
3061
|
* VS Code-style: left nav of sections, scrolling right pane of rows.
|
|
3082
3062
|
* ─────────────────────────────────────────────────────────────────────────── */
|
|
3083
|
-
.ide-settings-overlay {
|
|
3084
|
-
position: fixed;
|
|
3085
|
-
inset: 0;
|
|
3086
|
-
background: rgba(0,0,0,0.45);
|
|
3087
|
-
z-index: 9100;
|
|
3088
|
-
display: flex;
|
|
3089
|
-
align-items: center;
|
|
3090
|
-
justify-content: center;
|
|
3091
|
-
}
|
|
3092
|
-
|
|
3093
3063
|
/* Frosted like Quick Open — it floats over the editor, not inside it. */
|
|
3094
3064
|
.ide-settings-modal {
|
|
3095
3065
|
backdrop-filter: blur(20px) saturate(180%);
|
|
@@ -3262,8 +3232,7 @@ main { padding: unset; }
|
|
|
3262
3232
|
|
|
3263
3233
|
/* Compact spinner size for non-button IDE loading states */
|
|
3264
3234
|
.ide-loading-state[aria-busy="true"]::before,
|
|
3265
|
-
.git-empty[aria-busy="true"]::before
|
|
3266
|
-
.search-results-loading-more[aria-busy="true"]::before {
|
|
3235
|
+
.git-empty[aria-busy="true"]::before {
|
|
3267
3236
|
--pico-loading-spinner-opacity: 0.7;
|
|
3268
3237
|
width: 14px;
|
|
3269
3238
|
height: 14px;
|
|
@@ -3362,7 +3331,6 @@ textarea {
|
|
|
3362
3331
|
.git-header-btn,
|
|
3363
3332
|
.git-action-btn,
|
|
3364
3333
|
.project-action-btn,
|
|
3365
|
-
.search-clear-btn,
|
|
3366
3334
|
.quick-open-clear-btn,
|
|
3367
3335
|
.shelp-close {
|
|
3368
3336
|
padding: 0;
|
|
@@ -3374,14 +3342,6 @@ textarea {
|
|
|
3374
3342
|
justify-content: center;
|
|
3375
3343
|
}
|
|
3376
3344
|
|
|
3377
|
-
/* Context menu items */
|
|
3378
|
-
.context-menu-item {
|
|
3379
|
-
--pico-form-element-spacing-vertical: 6px;
|
|
3380
|
-
font-size: 12px;
|
|
3381
|
-
border-radius: 0;
|
|
3382
|
-
border: none;
|
|
3383
|
-
}
|
|
3384
|
-
|
|
3385
3345
|
/* Tree inline create input — ultra-compact */
|
|
3386
3346
|
.tree-inline-input {
|
|
3387
3347
|
padding: 1px 4px;
|
|
@@ -3467,7 +3427,6 @@ button:not(.pico-btn) { margin-bottom: 0; }
|
|
|
3467
3427
|
.ide-shell .git-action-btn { border-radius: 4px; } /* matched to explorer buttons */
|
|
3468
3428
|
.ide-shell .ide-icon-btn,
|
|
3469
3429
|
.ide-shell .tab-close,
|
|
3470
|
-
.ide-shell .search-clear-btn,
|
|
3471
3430
|
.ide-shell .quick-open-clear-btn,
|
|
3472
3431
|
.ide-shell .shelp-close { border-radius: 3px; }
|
|
3473
3432
|
.ide-shell .statusbar-btn { border-radius: 2px; }
|
|
@@ -4115,11 +4074,6 @@ input.ide-model-graph-search[type="search"] {
|
|
|
4115
4074
|
needs has actually failed — an empty room is silence, not a warning. */
|
|
4116
4075
|
.mbeditor-collab-trouble { color: var(--ide-warning, #cca700); }
|
|
4117
4076
|
.mbeditor-conflict-chip { color: var(--ide-error, #f48771); }
|
|
4118
|
-
.mbeditor-modal-backdrop {
|
|
4119
|
-
position: fixed; inset: 0; z-index: 5000;
|
|
4120
|
-
background: rgba(0, 0, 0, 0.45);
|
|
4121
|
-
display: flex; align-items: center; justify-content: center;
|
|
4122
|
-
}
|
|
4123
4077
|
.mbeditor-collab-diag {
|
|
4124
4078
|
width: min(560px, 92vw);
|
|
4125
4079
|
max-height: 80vh; overflow-y: auto;
|
|
@@ -4150,8 +4104,9 @@ input.ide-model-graph-search[type="search"] {
|
|
|
4150
4104
|
|
|
4151
4105
|
/* Combined view: method picking + Markdown export; import Compare; Paste & Place */
|
|
4152
4106
|
.combined-toolbar { display: flex; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--ide-border, #333); }
|
|
4153
|
-
.combined-
|
|
4154
|
-
.combined-method { display:
|
|
4107
|
+
.combined-picker { max-height: 30vh; overflow-y: auto; padding: 4px 16px; font-size: 12px; border-bottom: 1px solid var(--ide-border, #333); }
|
|
4108
|
+
.combined-pick-file, .combined-pick-method { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
|
|
4109
|
+
.combined-pick-method { padding-left: 22px; font-size: 11px; }
|
|
4155
4110
|
.import-conflict-compare { margin-left: 8px; padding: 0; background: none; border: 0; color: var(--ide-accent, #0e639c); font-size: 11px; cursor: pointer; }
|
|
4156
4111
|
.import-conflict-compare:hover { text-decoration: underline; }
|
|
4157
4112
|
.import-conflict-modal.import-conflict-wide { min-width: min(900px, 94vw); max-width: 94vw; }
|
|
@@ -4164,3 +4119,54 @@ input.ide-model-graph-search[type="search"] {
|
|
|
4164
4119
|
.paste-place-name { font-family: var(--ide-mono-font, monospace); min-width: 160px; }
|
|
4165
4120
|
.paste-place-row select { flex: 1; min-width: 0; color: var(--ide-text, #d4d4d4); background: var(--ide-input-bg, #3c3c3c); border: 1px solid var(--ide-border, #3c3c3c); }
|
|
4166
4121
|
.paste-place-diff { height: 260px; margin-top: 8px; border: 1px solid var(--ide-border, #3c3c3c); }
|
|
4122
|
+
|
|
4123
|
+
/* AI round trip modal — reuses the schema-modal shell */
|
|
4124
|
+
.ai-modal { width: 80vw; height: 80vh; max-width: none; max-height: none; min-width: 0; overflow: hidden; }
|
|
4125
|
+
.ai-modal .schema-modal-body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
|
|
4126
|
+
.ai-tabs { display: flex; gap: 4px; }
|
|
4127
|
+
.ai-tab {
|
|
4128
|
+
background: none; border: 0; border-bottom: 2px solid transparent;
|
|
4129
|
+
color: var(--ide-text-muted, #999); font-size: 13px; padding: 2px 10px; cursor: pointer;
|
|
4130
|
+
}
|
|
4131
|
+
.ai-tab.active { color: var(--ide-text, #ccc); border-bottom-color: var(--ide-accent, #0e639c); }
|
|
4132
|
+
.ai-pane { padding: 12px 16px; font-size: 12px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
4133
|
+
.ai-hint { margin: 0 0 8px; color: var(--ide-text-muted, #999); }
|
|
4134
|
+
.ai-dir-list, .ai-dir-list li { list-style: none; margin: 0; }
|
|
4135
|
+
.ai-dir-list { padding-left: 16px; }
|
|
4136
|
+
.ai-pane > .ai-dir-list { padding-left: 0; flex: 1; min-height: 0; overflow-y: auto; }
|
|
4137
|
+
.ai-dir-row { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
|
|
4138
|
+
.ai-dir-toggle { width: 16px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: 9px; }
|
|
4139
|
+
.ai-patch {
|
|
4140
|
+
width: 100%; box-sizing: border-box; flex: 1; min-height: 120px; resize: none;
|
|
4141
|
+
font-family: var(--ide-mono-font, monospace); font-size: 12px;
|
|
4142
|
+
color: var(--ide-text, #d4d4d4); background: var(--ide-input-bg, #3c3c3c);
|
|
4143
|
+
border: 1px solid var(--ide-border, #3c3c3c);
|
|
4144
|
+
}
|
|
4145
|
+
.ai-error { margin-top: 8px; color: var(--ide-error, #f48771); white-space: pre-wrap; font-family: inherit; }
|
|
4146
|
+
.ai-result { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
|
|
4147
|
+
.ai-edit-diff { margin-left: auto; background: none; border: 0; color: var(--ide-accent, #4a8fd6); cursor: pointer; font-size: 12px; padding: 0; }
|
|
4148
|
+
.ai-files { margin-top: 4px; }
|
|
4149
|
+
.ai-file { display: block; margin-bottom: 8px; }
|
|
4150
|
+
.ai-status { font-weight: 600; text-transform: uppercase; font-size: 10px; margin-right: 4px; }
|
|
4151
|
+
.ai-status-created { color: #2ea043; }
|
|
4152
|
+
.ai-status-deleted { color: var(--ide-error, #f48771); }
|
|
4153
|
+
.ai-status-renamed { color: var(--ide-accent, #0e639c); }
|
|
4154
|
+
.ai-status-modified { color: var(--ide-text-muted, #999); }
|
|
4155
|
+
.ai-diff {
|
|
4156
|
+
margin-top: 8px; flex: 1; min-height: 0; overflow: auto;
|
|
4157
|
+
border: 1px solid var(--ide-border, #3c3c3c);
|
|
4158
|
+
font-family: var(--ide-mono-font, monospace); font-size: 12px;
|
|
4159
|
+
}
|
|
4160
|
+
.ai-diff-line { white-space: pre; min-height: 1.4em; line-height: 1.4; padding: 0 6px; }
|
|
4161
|
+
.ai-diff-add { background: rgba(46, 160, 67, 0.22); }
|
|
4162
|
+
.ai-diff-del { background: rgba(248, 81, 73, 0.22); }
|
|
4163
|
+
.ai-diff-hunk { color: var(--ide-accent, #4a8fd6); opacity: 0.85; }
|
|
4164
|
+
.ai-diff-meta { color: var(--ide-text-muted, #999); }
|
|
4165
|
+
.ai-diff-file { font-weight: 600; }
|
|
4166
|
+
.ai-diff-off { opacity: 0.4; }
|
|
4167
|
+
.ai-diff-prefix { display: inline-block; width: 1ch; margin-right: 1ch; user-select: none; }
|
|
4168
|
+
.ai-file-row {
|
|
4169
|
+
display: flex; align-items: center; gap: 6px; padding: 3px 6px; cursor: pointer;
|
|
4170
|
+
background: var(--ide-hover-bg, rgba(128, 128, 128, 0.15)); border-top: 1px solid var(--ide-border, #3c3c3c);
|
|
4171
|
+
}
|
|
4172
|
+
.ai-hunk-row { display: flex; align-items: center; gap: 6px; }
|
|
@@ -153,7 +153,7 @@ html[data-glass] .search-input {
|
|
|
153
153
|
/* ── Quick open ───────────────────────────────────────────────────────────── */
|
|
154
154
|
/* The frosted box itself is the default look now (editor.css) regardless of
|
|
155
155
|
the glass setting — only the capsule-row treatment is glass-specific. */
|
|
156
|
-
html[data-glass] .
|
|
156
|
+
html[data-glass] dialog.mb-dialog-top::backdrop { background: color-mix(in srgb, var(--ide-bg) 30%, transparent); }
|
|
157
157
|
html[data-glass] .quick-open-result { border-radius: 999px; margin: 0 6px; }
|
|
158
158
|
html[data-glass] .quick-open-result:hover { background: var(--g-hover); }
|
|
159
159
|
|