codexmate 0.1.37 → 0.1.39

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.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/README.vi.md +2 -2
  3. package/README.zh.md +2 -2
  4. package/cli/desktop-release.js +73 -0
  5. package/cli/update.js +27 -15
  6. package/cli.js +9 -3
  7. package/lib/model-test.js +126 -21
  8. package/package.json +4 -1
  9. package/plugins/prompt-templates/overview.mjs +1 -7
  10. package/web-ui/app.js +5 -0
  11. package/web-ui/modules/app.methods.install.mjs +38 -2
  12. package/web-ui/modules/app.methods.provider-cache.mjs +3 -0
  13. package/web-ui/modules/i18n/locales/en.mjs +1945 -2011
  14. package/web-ui/modules/i18n/locales/expand.mjs +18 -0
  15. package/web-ui/modules/i18n/locales/ja.mjs +1946 -2012
  16. package/web-ui/modules/i18n/locales/keys.mjs +1945 -0
  17. package/web-ui/modules/i18n/locales/vi.mjs +1945 -1980
  18. package/web-ui/modules/i18n/locales/zh-tw.mjs +1945 -2009
  19. package/web-ui/modules/i18n/locales/zh.mjs +1944 -2009
  20. package/web-ui/modules/i18n.mjs +3 -2
  21. package/web-ui/modules/model-test.mjs +114 -26
  22. package/web-ui/partials/index/layout-header.html +73 -71
  23. package/web-ui/partials/index/modals-basic.html +22 -9
  24. package/web-ui/partials/index/panel-plugins.html +23 -35
  25. package/web-ui/partials/index/plugin-file-sharing.html +4 -4
  26. package/web-ui/partials/index/routing-model-test.html +29 -9
  27. package/web-ui/res/web-ui-render.precompiled.js +1 -14467
  28. package/web-ui/styles/layout-shell.css +155 -209
  29. package/web-ui/styles/navigation-panels.css +8 -9
  30. package/web-ui/styles/plugins-panel.css +78 -132
  31. package/web-ui/styles/responsive.css +7 -7
  32. package/web-ui/styles/routing.css +8 -0
  33. package/web-ui/styles/settings-panel.css +16 -14
  34. package/web-ui/styles/sub-tabs.css +13 -0
  35. package/web-ui/styles/theme-dark-tokens.css +4 -0
  36. package/web-ui/styles/theme-dark.css +5 -13
  37. package/web-ui/styles/theme-ocean-tokens.css +3 -0
  38. package/web-ui/styles/theme-ocean.css +3 -12
  39. package/web-ui/styles/theme-violet-tokens.css +3 -0
  40. package/web-ui/styles/theme-violet.css +14 -38
@@ -1,27 +1,13 @@
1
- .plugins-layout {
2
- display: grid;
3
- grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
4
- gap: var(--spacing-sm);
5
- align-items: start;
6
- }
7
-
8
- .plugins-layout-single {
9
- grid-template-columns: minmax(0, 1fr);
10
- }
11
-
12
1
  .plugins-sidebar {
13
- border: 1px solid var(--color-border);
14
- border-radius: var(--radius-lg);
15
- background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,248,241,0.72) 100%);
16
- box-shadow: var(--shadow-subtle);
17
- padding: var(--spacing-sm);
2
+ display: none;
18
3
  min-width: 0;
19
4
  }
20
5
 
21
- .plugins-sidebar-header {
22
- margin-bottom: var(--spacing-sm);
23
- align-items: flex-start;
24
- gap: var(--spacing-xs);
6
+ @media (max-width: 820px) {
7
+ .plugins-sidebar {
8
+ display: block;
9
+ margin-bottom: var(--spacing-sm);
10
+ }
25
11
  }
26
12
 
27
13
  .plugins-panel-note {
@@ -31,66 +17,6 @@
31
17
  line-height: 1.5;
32
18
  }
33
19
 
34
- .plugins-list {
35
- display: grid;
36
- gap: 8px;
37
- }
38
-
39
- .plugins-item {
40
- width: 100%;
41
- text-align: left;
42
- display: flex;
43
- justify-content: space-between;
44
- align-items: center;
45
- gap: var(--spacing-xs);
46
- padding: 10px 12px;
47
- border-radius: var(--radius-sm);
48
- border: 1px solid transparent;
49
- background: transparent;
50
- cursor: pointer;
51
- position: relative;
52
- transition: all var(--transition-fast) var(--ease-spring);
53
- }
54
-
55
- .plugins-item:hover {
56
- background: rgba(255,255,255,0.7);
57
- transform: translateX(2px);
58
- }
59
-
60
- .plugins-item.active {
61
- border-color: rgba(208,88,58,0.2);
62
- background: linear-gradient(to right, rgba(255,243,236,0.96) 0%, rgba(255,255,255,0.86) 100%);
63
- box-shadow: 0 2px 8px rgba(200,121,99,0.1);
64
- }
65
- .plugins-item.active::before {
66
- content: '';
67
- position: absolute;
68
- left: 0;
69
- top: 8px;
70
- bottom: 8px;
71
- width: 3px;
72
- border-radius: 0 3px 3px 0;
73
- background: var(--color-brand);
74
- }
75
-
76
- .plugins-item-main {
77
- min-width: 0;
78
- }
79
-
80
- .plugins-item-title {
81
- font-size: var(--font-size-body);
82
- font-weight: var(--font-weight-secondary);
83
- color: var(--color-text-primary);
84
- }
85
-
86
- .plugins-item-meta {
87
- margin-top: 3px;
88
- font-size: var(--font-size-caption);
89
- color: var(--color-text-tertiary);
90
- line-height: 1.45;
91
- overflow-wrap: anywhere;
92
- }
93
-
94
20
  .plugins-main {
95
21
  min-width: 0;
96
22
  }
@@ -546,9 +472,6 @@
546
472
  }
547
473
 
548
474
  @media (max-width: 980px) {
549
- .plugins-layout {
550
- grid-template-columns: 1fr;
551
- }
552
475
  .prompt-compose-workspace {
553
476
  grid-template-columns: 1fr;
554
477
  }
@@ -563,62 +486,77 @@
563
486
  }
564
487
  }
565
488
 
566
- /* Match the instruction-file editor: flat workspace, underlined tabs and quiet tools. */
567
489
  #panel-plugins { container-type: inline-size; }
568
- #panel-plugins .plugins-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
569
- #panel-plugins .plugins-sidebar { padding: 0; border: 0; background: transparent; box-shadow: none; }
570
- #panel-plugins .plugins-sidebar-header { display: none; }
571
- #panel-plugins .plugins-list { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; border-bottom: 1px solid var(--color-border-soft); }
572
- #panel-plugins .plugins-item { width: auto; min-height: 44px; padding: 7px 10px 8px; gap: 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
573
- #panel-plugins .plugins-item-meta, #panel-plugins .plugins-item > .pill { display: none; }
574
- #panel-plugins .plugins-item:hover { transform: none; background: transparent; }
575
- #panel-plugins .plugins-item.active { background: transparent; color: var(--color-brand-dark); border-bottom-color: var(--color-brand); box-shadow: none; }
576
- #panel-plugins .plugins-item.active .plugins-item-title { color: var(--color-brand-dark); }
577
- #panel-plugins .plugins-item.active::before { display: none; }
578
- #panel-plugins .plugins-item-title { font-size: 13px; }
579
490
  #panel-plugins .plugins-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
580
- #panel-plugins .plugins-panel-head { margin-bottom: 8px; align-items: center; gap: 12px; }
581
- #panel-plugins .plugins-panel-title { font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
491
+ #panel-plugins .plugins-panel-head { align-items: center; gap: 8px 16px; margin-bottom: 12px; }
492
+ /* A screen-reader heading alone must not leave a visual gap before the mode switch. */
493
+ #panel-plugins .plugins-panel-head:has(> .sr-only:only-child) { margin-bottom: 0; }
494
+ #panel-plugins .plugins-panel-title { margin: 0; font-size: var(--font-size-title); line-height: 1.4; letter-spacing: 0; }
582
495
  #panel-plugins .plugins-panel-note { line-height: 1.65; overflow-wrap: anywhere; }
583
- #panel-plugins .prompt-templates-modebar { padding: 0; gap: 2px; margin-bottom: 12px; border: 0; border-bottom: 1px solid var(--color-border-soft); border-radius: 0; background: transparent; backdrop-filter: none; }
584
- #panel-plugins .mode-pill { position: relative; min-height: 44px; padding: 7px 10px 8px; border-radius: 0; letter-spacing: 0; }
585
- #panel-plugins .mode-pill.active { background: transparent; color: var(--color-brand-dark); box-shadow: none; }
586
- #panel-plugins .mode-pill.active::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--color-brand); }
587
- #panel-plugins .mode-pill:hover:not(.active) { background: transparent; color: var(--color-text-primary); }
588
- #panel-plugins .prompt-compose-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
496
+ #panel-plugins .prompt-templates-modebar { display: flex; margin-bottom: var(--spacing-sm); }
497
+
498
+ #panel-plugins .prompt-compose-workspace { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
589
499
  #panel-plugins .prompt-compose-main { gap: 24px; align-content: start; }
590
- #panel-plugins .prompt-compose-form { display: grid; gap: 8px; }
591
- #panel-plugins .form-label { margin: 0; font-size: 13px; font-weight: 600; }
500
+ #panel-plugins .prompt-compose-form { display: grid; gap: 8px; padding: 0; border: 0; background: transparent; }
501
+ #panel-plugins .form-label { margin: 0; font-size: var(--font-size-body); font-weight: 600; }
592
502
  #panel-plugins .prompt-vars-block { margin: 0; padding: 0; border: 0; background: transparent; }
593
- #panel-plugins .prompt-vars-head { align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
594
- #panel-plugins .prompt-vars-title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
595
- #panel-plugins .prompt-vars-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
596
- #panel-plugins .prompt-var-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
503
+ #panel-plugins .prompt-vars-head { align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
504
+ #panel-plugins .prompt-vars-head > div { min-width: 0; }
505
+ #panel-plugins .prompt-vars-title { font-size: var(--font-size-body); font-weight: 600; color: var(--color-text-primary); }
506
+ #panel-plugins .prompt-vars-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 208px), 1fr)); gap: 12px; }
507
+ #panel-plugins .prompt-var-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
597
508
  #panel-plugins .prompt-var-label { color: var(--color-text-secondary); overflow-wrap: anywhere; }
598
- #panel-plugins .prompt-preview-block { margin: 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--color-border-soft); border-radius: 0; background: transparent; }
599
- #panel-plugins .prompt-compose-preview { display: flex; flex-direction: column; min-height: 360px; }
600
- #panel-plugins .prompt-preview-textarea { flex: 1; width: 100%; min-height: 240px; padding: 16px; border: 0; background: var(--color-surface-alt); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; resize: vertical; }
601
- #panel-plugins .prompt-templates-grid { grid-template-columns: minmax(240px, .75fr) minmax(0, 1.5fr); gap: 32px; }
602
- #panel-plugins .prompt-templates-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
603
- #panel-plugins .prompt-templates-toolbar .form-input { grid-column: 1 / -1; min-width: 0; }
604
- #panel-plugins .prompt-template-item { border: 0; box-shadow: none; background: transparent; padding: 16px 12px; border-radius: 8px; }
509
+ #panel-plugins .prompt-preview-block { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
510
+ #panel-plugins .prompt-compose-preview { display: flex; flex-direction: column; }
511
+ #panel-plugins .prompt-preview-textarea {
512
+ flex: 1;
513
+ width: 100%;
514
+ min-height: 240px;
515
+ padding: 12px;
516
+ background: var(--color-surface-alt);
517
+ line-height: 1.65;
518
+ white-space: pre-wrap;
519
+ overflow-wrap: anywhere;
520
+ resize: vertical;
521
+ }
522
+ #panel-plugins .plugins-panel-text-tools .prompt-compose-main { grid-template-rows: 1fr; }
523
+ #panel-plugins .plugins-panel-text-tools .prompt-compose-form { grid-template-rows: minmax(44px, auto) 1fr; }
524
+ #panel-plugins .plugins-panel-text-tools .form-label { align-self: center; }
525
+
526
+ #panel-plugins .prompt-templates-grid { grid-template-columns: minmax(256px, 1fr) minmax(0, 2fr); gap: 24px; }
527
+ #panel-plugins .prompt-templates-pane-list { padding-inline-end: 16px; border-inline-end: 1px solid var(--color-border-soft); }
528
+ #panel-plugins .prompt-templates-toolbar { gap: 8px; margin-bottom: 12px; }
529
+ #panel-plugins .prompt-templates-toolbar .form-input { flex: 1 0 100%; min-width: 0; }
530
+ #panel-plugins .prompt-templates-list { gap: 4px; padding: 4px; }
531
+ #panel-plugins .prompt-template-item { min-height: 56px; padding: 8px 12px; text-align: start; border: 0; background: transparent; box-shadow: none; }
605
532
  #panel-plugins .prompt-template-item:hover { transform: none; background: var(--color-surface-alt); }
606
533
  #panel-plugins .prompt-template-item.active { background: var(--color-brand-light); box-shadow: none; }
607
- #panel-plugins .prompt-editor-head { padding: 0; border: 0; border-radius: 0; background: transparent; gap: 12px; margin-bottom: 20px; }
608
- #panel-plugins .prompt-editor-name { min-width: 0; font-size: 16px; font-weight: 600; }
609
- #panel-plugins .prompt-editor-textarea { width: 100%; min-height: 240px; line-height: 1.8; white-space: pre-wrap; }
610
- #panel-plugins :is(.form-input, .form-select) { max-width: 100%; min-height: 44px; border-radius: 8px; }
611
- #panel-plugins .btn-mini { min-height: 44px; padding: 8px 12px; }
612
- #panel-plugins .prompt-compose-preview > .prompt-vars-head > .btn-mini { background: transparent; color: var(--color-text-secondary); border-color: var(--color-border-soft); }
534
+ #panel-plugins .prompt-template-item.active .prompt-template-item-title { color: var(--color-text-primary); }
535
+ #panel-plugins .prompt-template-item-main { min-width: 0; overflow-wrap: anywhere; }
536
+ #panel-plugins .prompt-template-item-meta { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: 4px; }
537
+ #panel-plugins .prompt-template-origin {
538
+ flex-shrink: 0;
539
+ max-width: 40%;
540
+ color: var(--color-text-secondary);
541
+ font-size: var(--font-size-caption);
542
+ overflow-wrap: anywhere;
543
+ }
544
+ #panel-plugins .prompt-templates-pane-editor { display: grid; align-content: start; gap: 16px; }
545
+ #panel-plugins .prompt-editor-head { margin: 0; padding: 0; border: 0; background: transparent; gap: 8px; }
546
+ #panel-plugins .prompt-editor-name { min-width: min(100%, 208px); font-size: var(--font-size-body); font-weight: 600; }
547
+ #panel-plugins .prompt-editor-body { display: grid; gap: 16px; min-width: 0; }
548
+ #panel-plugins .prompt-editor-body > .form-label { margin-bottom: -8px; }
549
+ #panel-plugins .prompt-editor-textarea { width: 100%; min-height: 240px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; resize: vertical; }
550
+ #panel-plugins :is(.form-input, .form-select) { max-width: 100%; min-height: 44px; border-radius: var(--radius-sm); }
551
+ #panel-plugins .btn-mini { min-width: 44px; min-height: 44px; max-width: 100%; padding: 8px 12px; white-space: normal; overflow-wrap: anywhere; }
613
552
  #panel-plugins button { transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
614
553
  #panel-plugins button:active:not(:disabled) { opacity: .8; }
615
554
  #panel-plugins button:disabled { opacity: .45; cursor: not-allowed; }
616
555
  #panel-plugins :is(button, input, select, textarea):focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
617
- @container (max-width: 800px) {
618
- #panel-plugins .prompt-compose-workspace, #panel-plugins .prompt-templates-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
619
- #panel-plugins .plugins-panel { padding: 0; }
620
- #panel-plugins .prompt-compose-preview { padding-left: 0; border-left: 0; }
621
- #panel-plugins .prompt-compose-preview { min-height: 300px; }
556
+ @container (max-width: 720px) {
557
+ #panel-plugins .prompt-compose-workspace, #panel-plugins .prompt-templates-grid { grid-template-columns: minmax(0, 1fr); }
558
+ #panel-plugins .prompt-templates-pane-list { padding: 0 0 16px; border-inline-end: 0; border-bottom: 1px solid var(--color-border-soft); }
559
+ #panel-plugins .prompt-templates-list { max-height: min(240px, 34vh); }
622
560
  }
623
561
  @media (prefers-reduced-motion: reduce) {
624
562
  #panel-plugins button { transition: none; }
@@ -633,12 +571,20 @@
633
571
  .file-sharing-batches { display: grid; gap: 16px; margin-block: 16px; }
634
572
  .file-sharing-batches > li {
635
573
  min-width: 0;
636
- padding: 12px;
637
- border-radius: var(--radius-md);
638
- background: var(--color-surface);
574
+ padding-block: 8px;
575
+ border-bottom: 1px solid var(--color-border-soft);
576
+ }
577
+ .file-sharing-row { display: grid; align-items: center; gap: 4px 8px; min-width: 0; }
578
+ .file-sharing-batch-head { grid-template-columns: minmax(0, 1fr) auto; }
579
+ .file-sharing-file {
580
+ grid-template-columns: minmax(0, 1fr) auto repeat(2, 44px);
581
+ padding-block: 4px;
582
+ border-top: 1px solid var(--color-border-soft);
583
+ }
584
+ @container (max-width: 384px) {
585
+ .file-sharing-file { grid-template-columns: minmax(0, 1fr) repeat(2, 44px); }
586
+ .file-sharing-file > :first-child { grid-column: 1 / -1; }
639
587
  }
640
- .file-sharing-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
641
- .file-sharing-row > :first-child { flex: 1 1 160px; min-width: 0; }
642
588
  .file-sharing-row .file-sharing-icon {
643
589
  display: inline-grid;
644
590
  place-items: center;
@@ -26,7 +26,7 @@ textarea:focus-visible {
26
26
 
27
27
  .main-panel-topbar {
28
28
  margin: 0 -20px var(--panel-top-gap);
29
- padding: 0 20px 10px;
29
+ padding: 0 20px;
30
30
  }
31
31
 
32
32
  }
@@ -49,7 +49,7 @@ textarea:focus-visible {
49
49
  }
50
50
  .main-panel-topbar {
51
51
  margin: 0 -16px var(--panel-top-gap);
52
- padding: 0 16px 10px;
52
+ padding: 0 16px;
53
53
  }
54
54
  .top-tabs {
55
55
  display: none !important;
@@ -154,7 +154,7 @@ textarea:focus-visible {
154
154
  top: 0;
155
155
  z-index: 20;
156
156
  margin: 0 0 var(--panel-top-gap);
157
- padding: 0 0 8px;
157
+ padding: 0;
158
158
  background: rgba(255, 248, 241, 0.96);
159
159
  backdrop-filter: blur(14px) saturate(130%);
160
160
  }
@@ -260,7 +260,6 @@ textarea:focus-visible {
260
260
  gap: 8px;
261
261
  overflow-x: auto;
262
262
  overflow-y: hidden;
263
- padding-bottom: 2px;
264
263
  scrollbar-width: none;
265
264
  -webkit-overflow-scrolling: touch;
266
265
  }
@@ -691,8 +690,9 @@ textarea:focus-visible {
691
690
  overflow: hidden;
692
691
  }
693
692
 
694
- .app-shell {
695
- grid-template-columns: 1fr;
693
+ .app-shell,
694
+ .app-shell.sidebar-collapsed {
695
+ grid-template-columns: minmax(0, 1fr);
696
696
  flex: 1 1 auto;
697
697
  min-height: 0;
698
698
  height: auto;
@@ -740,7 +740,7 @@ textarea:focus-visible {
740
740
  top: 0;
741
741
  z-index: 20;
742
742
  margin: 0 0 var(--panel-top-gap);
743
- padding: 0 0 8px;
743
+ padding: 0;
744
744
  background: rgba(255, 248, 241, 0.96);
745
745
  backdrop-filter: blur(14px) saturate(130%);
746
746
  }
@@ -63,6 +63,14 @@
63
63
  #panel-routing .routing-test-result-head { color: var(--color-text-primary); overflow-wrap: anywhere; }
64
64
  #panel-routing .routing-test-question { margin: 16px 0 24px; color: var(--color-text-tertiary); white-space: pre-wrap; overflow-wrap: anywhere; }
65
65
  #panel-routing .routing-test-answer { max-width: 72ch; color: var(--color-text-primary); line-height: var(--line-height-normal); overflow-wrap: anywhere; }
66
+ #panel-routing .routing-batch-result summary {
67
+ min-height: 44px;
68
+ box-sizing: border-box;
69
+ padding-block: 12px;
70
+ cursor: pointer;
71
+ overflow-wrap: anywhere;
72
+ }
73
+ #panel-routing .routing-batch-result summary:focus-visible { outline: 2px solid var(--color-brand); }
66
74
  #panel-routing .routing-test-plain { white-space: pre-wrap; }
67
75
  #panel-routing .routing-test-answer :is(h1, h2, h3, h4) { font-size: var(--font-size-body); margin: 24px 0 8px; }
68
76
  #panel-routing .routing-test-answer :is(p, ul, ol) { margin: 12px 0; }
@@ -508,24 +508,26 @@
508
508
 
509
509
  /* ---- Provider cache records ---- */
510
510
  .project-announcement-overlay {
511
- background:
512
- radial-gradient(circle at 50% 15%, rgba(255, 248, 241, 0.12), rgba(255, 248, 241, 0) 34%),
513
- linear-gradient(to bottom, rgba(31, 26, 23, 0.48) 0%, rgba(31, 26, 23, 0.68) 100%);
514
- backdrop-filter: blur(10px) saturate(120%);
515
- -webkit-backdrop-filter: blur(10px) saturate(120%);
511
+ background: linear-gradient(rgba(31, 26, 23, 0.28), rgba(31, 26, 23, 0.28));
512
+ align-items: flex-end;
513
+ justify-content: flex-start;
514
+ padding: var(--side-popup-gap) 8px calc(var(--side-toolbar-height) + var(--side-popup-gap));
515
+ backdrop-filter: none;
516
+ -webkit-backdrop-filter: none;
516
517
  }
517
518
 
518
- .provider-cache-announcement-modal {
519
+ .project-announcement-overlay .provider-cache-announcement-modal {
519
520
  position: relative;
520
- width: min(720px, calc(100vw - 32px));
521
- max-width: min(720px, calc(100vw - 32px));
522
- max-height: min(86vh, 900px);
523
- display: flex;
524
- flex-direction: column;
525
- overflow: hidden;
526
- background: rgba(255, 253, 250, 0.985);
527
- border-color: rgba(137, 111, 94, 0.22);
521
+ width: min(520px, 100%);
522
+ max-width: none;
523
+ max-height: 100%;
524
+ overflow: auto;
525
+ scrollbar-gutter: stable;
526
+ display: block;
527
+ background: var(--color-surface-elevated);
528
+ border-color: var(--color-border-soft);
528
529
  font-size: 12px;
530
+ animation: none;
529
531
  }
530
532
 
531
533
  .project-announcement-close {
@@ -179,3 +179,16 @@
179
179
  --sub-tab-transition: none;
180
180
  }
181
181
  }
182
+
183
+ @media (max-width: 820px) {
184
+ #panel-plugins .plugins-sidebar .plugins-list {
185
+ display: flex;
186
+ flex-wrap: wrap;
187
+ }
188
+
189
+ #panel-plugins .plugins-sidebar .plugins-item {
190
+ max-width: 100%;
191
+ white-space: normal;
192
+ overflow-wrap: anywhere;
193
+ }
194
+ }
@@ -3,6 +3,10 @@
3
3
  作用于 <html data-theme="dark">;浅色默认值见 base-theme.css
4
4
  ============================================ */
5
5
  :root[data-theme="dark"] {
6
+ --side-rail-surface: #202124;
7
+ --side-toolbar-border: var(--color-border-soft);
8
+ --side-section-title-color: var(--color-text-muted);
9
+ --side-active-surface: var(--color-surface-elevated);
6
10
  color-scheme: dark;
7
11
 
8
12
  /* 品牌色:保留暖橙 accent,提亮适配暗底 */
@@ -12,6 +12,10 @@
12
12
  作用于 <html data-theme="dark">;浅色默认值见 base-theme.css
13
13
  ============================================ */
14
14
  :root[data-theme="dark"] {
15
+ --side-rail-surface: #202124;
16
+ --side-toolbar-border: var(--color-border-soft);
17
+ --side-section-title-color: var(--color-text-muted);
18
+ --side-active-surface: var(--color-surface-elevated);
15
19
  color-scheme: dark;
16
20
 
17
21
  /* 品牌色:保留暖橙 accent,提亮适配暗底 */
@@ -108,9 +112,6 @@
108
112
  [data-theme="dark"] .side-rail-collapse-toggle:hover {
109
113
  border-color:rgba(255, 255, 255, 0.24);
110
114
  }
111
- [data-theme="dark"] .side-section + .side-section {
112
- border-top:1px solid rgba(255, 255, 255, 0.06);
113
- }
114
115
  [data-theme="dark"] .lang-choice {
115
116
  border:1px solid rgba(255, 255, 255, 0.22);
116
117
  background-color:rgba(30, 31, 34, 0.92);
@@ -144,18 +145,9 @@
144
145
  [data-theme="dark"] .lang-switch-track::after {
145
146
  background-image:radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 55%);
146
147
  }
147
- [data-theme="dark"] .side-item:hover {
148
+ [data-theme="dark"] .side-item:where(:hover:not(.nav-intent-inactive)) {
148
149
  background-color:rgba(30, 31, 34, 0.64);
149
150
  }
150
- [data-theme="dark"] .side-item.active,
151
- [data-theme="dark"] .side-item.nav-intent-active {
152
- border-color:rgba(255, 255, 255, 0.15);
153
- background-image:linear-gradient(135deg, rgba(30, 31, 34, 0.86), rgba(255, 255, 255, 0.07));
154
- box-shadow:0 8px 20px rgba(0, 0, 0, 0.14);
155
- }
156
- [data-theme="dark"] .sidebar-collapsed .side-section + .side-section {
157
- border-top-color:rgba(255, 255, 255, 0.04);
158
- }
159
151
  [data-theme="dark"] .brand-block {
160
152
  background-image:linear-gradient(180deg, rgba(30, 31, 34, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
161
153
  }
@@ -11,6 +11,9 @@
11
11
  * node scripts/generate-ocean-theme-css.mjs
12
12
  */
13
13
  :root[data-theme="ocean"] {
14
+ --side-rail-surface: #F3F9FE;
15
+ --side-toolbar-border: var(--color-border-soft);
16
+ --side-section-title-color: var(--color-text-muted);
14
17
  color-scheme: light;
15
18
 
16
19
  /* 品牌色:海洋蓝(源自 dafy-whale-theme 的 --dsw-alias-brand-primary) */
@@ -20,6 +20,9 @@
20
20
  * node scripts/generate-ocean-theme-css.mjs
21
21
  */
22
22
  :root[data-theme="ocean"] {
23
+ --side-rail-surface: #F3F9FE;
24
+ --side-toolbar-border: var(--color-border-soft);
25
+ --side-section-title-color: var(--color-text-muted);
23
26
  color-scheme: light;
24
27
 
25
28
  /* 品牌色:海洋蓝(源自 dafy-whale-theme 的 --dsw-alias-brand-primary) */
@@ -113,9 +116,6 @@
113
116
  [data-theme="ocean"] .side-rail-collapse-toggle:hover {
114
117
  border-color:rgba(59, 98, 246, 0.35);
115
118
  }
116
- [data-theme="ocean"] .side-section + .side-section {
117
- border-top:1px solid rgba(159, 195, 232, 0.08);
118
- }
119
119
  [data-theme="ocean"] .lang-choice {
120
120
  border:1px solid rgba(198, 220, 242, 0.32);
121
121
  background-color:rgba(243, 249, 254, 0.92);
@@ -151,15 +151,6 @@
151
151
  [data-theme="ocean"] .lang-switch-track::after {
152
152
  background-image:radial-gradient(circle at 30% 20%, rgba(59, 98, 246, 0.18), rgba(59, 98, 246, 0) 55%);
153
153
  }
154
- [data-theme="ocean"] .side-item.active,
155
- [data-theme="ocean"] .side-item.nav-intent-active {
156
- border-color:rgba(59, 98, 246, 0.22);
157
- background-image:linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(59, 98, 246, 0.1));
158
- box-shadow:0 8px 20px rgba(16, 48, 92, 0.06);
159
- }
160
- [data-theme="ocean"] .sidebar-collapsed .side-section + .side-section {
161
- border-top-color:rgba(159, 195, 232, 0.06);
162
- }
163
154
  [data-theme="ocean"] .brand-kicker {
164
155
  color:rgb(14, 42, 92);
165
156
  }
@@ -7,6 +7,9 @@
7
7
  * Regenerate: node scripts/generate-ocean-theme-css.mjs violet
8
8
  */
9
9
  :root[data-theme="violet"] {
10
+ --side-rail-surface: var(--color-surface);
11
+ --side-toolbar-border: var(--color-border-soft);
12
+ --side-section-title-color: var(--color-text-muted);
10
13
  color-scheme: light;
11
14
  --color-brand: oklch(54.5% 0.250346 297.016);
12
15
  --color-brand-dark: oklch(49% 0.225 297.016);
@@ -16,6 +16,9 @@
16
16
  * Regenerate: node scripts/generate-ocean-theme-css.mjs violet
17
17
  */
18
18
  :root[data-theme="violet"] {
19
+ --side-rail-surface: var(--color-surface);
20
+ --side-toolbar-border: var(--color-border-soft);
21
+ --side-section-title-color: var(--color-text-muted);
19
22
  color-scheme: light;
20
23
  --color-brand: oklch(54.5% 0.250346 297.016);
21
24
  --color-brand-dark: oklch(49% 0.225 297.016);
@@ -65,7 +68,7 @@
65
68
  ========================================================================== */
66
69
 
67
70
  [data-theme="violet"] .side-rail {
68
- background-image:none; background-color:color-mix(in oklch, var(--color-surface) 95%, transparent);
71
+ background-color:var(--side-rail-surface, var(--color-surface));
69
72
  border-right:1px solid color-mix(in oklch, var(--color-border) 10%, transparent);
70
73
  box-shadow:none;
71
74
  }
@@ -77,9 +80,6 @@
77
80
  [data-theme="violet"] .side-rail-collapse-toggle:hover {
78
81
  border-color:color-mix(in oklch, var(--color-brand) 35%, transparent);
79
82
  }
80
- [data-theme="violet"] .side-section + .side-section {
81
- border-top:1px solid color-mix(in oklch, var(--color-border) 8%, transparent);
82
- }
83
83
  [data-theme="violet"] .lang-choice {
84
84
  border:1px solid color-mix(in oklch, var(--color-border) 32%, transparent);
85
85
  background-color:color-mix(in oklch, var(--color-surface) 92%, transparent);
@@ -104,6 +104,9 @@
104
104
  [data-theme="violet"] .lang-fab .lang-switch:hover .lang-switch-track {
105
105
  border-color:color-mix(in oklch, var(--color-brand) 70%, transparent);
106
106
  }
107
+ [data-theme="violet"] .side-rail-footer {
108
+ border-top:1px solid var(--side-toolbar-border, var(--color-surface));
109
+ }
107
110
  [data-theme="violet"] .lang-switch-track {
108
111
  border:1px solid color-mix(in oklch, var(--color-border) 38%, transparent);
109
112
  background-color:color-mix(in oklch, var(--color-surface) 78%, transparent);
@@ -116,33 +119,13 @@
116
119
  [data-theme="violet"] .lang-switch-track::after {
117
120
  background-image:none; background-color:color-mix(in oklch, var(--color-brand) 18%, transparent);
118
121
  }
119
- [data-theme="violet"] .side-item {
120
- box-shadow:none;
121
- }
122
- [data-theme="violet"] .side-item:hover {
122
+ [data-theme="violet"] .side-item:where(:hover:not(.nav-intent-inactive)) {
123
123
  background-color:color-mix(in oklch, var(--color-surface) 64%, transparent);
124
124
  }
125
125
  [data-theme="violet"] .side-item.side-item-disabled,
126
126
  [data-theme="violet"] .side-item.side-item-disabled:hover {
127
127
  box-shadow:none;
128
128
  }
129
- [data-theme="violet"] .side-item.active,
130
- [data-theme="violet"] .side-item.nav-intent-active {
131
- border-color:color-mix(in oklch, var(--color-brand) 22%, transparent);
132
- background-image:none; background-color:color-mix(in oklch, var(--color-surface) 86%, transparent);
133
- box-shadow:none;
134
- }
135
- [data-theme="violet"] .side-item.nav-intent-inactive,
136
- [data-theme="violet"] .side-item.active.nav-intent-inactive {
137
- box-shadow:none;
138
- }
139
- [data-theme="violet"] .sidebar-collapsed .side-section + .side-section {
140
- border-top-color:color-mix(in oklch, var(--color-border) 6%, transparent);
141
- }
142
- [data-theme="violet"] .brand-block {
143
- border-bottom:0.5px solid color-mix(in oklch, var(--color-text-primary) 6%, transparent);
144
- background-image:none; background-color:color-mix(in oklch, var(--color-surface) 50%, transparent);
145
- }
146
129
  [data-theme="violet"] .brand-logo {
147
130
  box-shadow:none;
148
131
  }
@@ -152,9 +135,6 @@
152
135
  [data-theme="violet"] .brand-block:hover .brand-logo {
153
136
  box-shadow:none;
154
137
  }
155
- [data-theme="violet"] .brand-kicker {
156
- color:var(--color-text-primary);
157
- }
158
138
  [data-theme="violet"] .brand-version {
159
139
  color:var(--color-text-primary);
160
140
  -webkit-text-fill-color:var(--color-text-primary);
@@ -205,6 +185,9 @@
205
185
  background-color:color-mix(in oklch, var(--color-brand) 72%, transparent);
206
186
  box-shadow:none;
207
187
  }
188
+ [data-theme="violet"] .side-update-notice .side-update-dot {
189
+ box-shadow:none;
190
+ }
208
191
  [data-theme="violet"] .github-badge {
209
192
  box-shadow:none;
210
193
  }
@@ -235,6 +218,9 @@
235
218
  [data-theme="violet"] .side-language-dropdown {
236
219
  box-shadow:none;
237
220
  }
221
+ [data-theme="violet"] .side-rail-action {
222
+ border:1px solid var(--side-toolbar-border, var(--color-surface));
223
+ }
238
224
  [data-theme="violet"] .main-tab-btn {
239
225
  box-shadow:none;
240
226
  }
@@ -565,10 +551,6 @@
565
551
  [data-theme="violet"] .project-announcement-overlay {
566
552
  background-image:none; background-color:var(--color-modal-scrim);
567
553
  }
568
- [data-theme="violet"] .provider-cache-announcement-modal {
569
- background-color:color-mix(in oklch, var(--color-surface) 98.5%, transparent);
570
- border-color:color-mix(in oklch, var(--color-border) 22%, transparent);
571
- }
572
554
  [data-theme="violet"] .project-announcement-close {
573
555
  border:1px solid color-mix(in oklch, var(--color-border) 18%, transparent);
574
556
  background-color:color-mix(in oklch, var(--color-surface) 74%, transparent);
@@ -1507,15 +1489,9 @@
1507
1489
  [data-theme="violet"] #panel-plugins .plugins-sidebar {
1508
1490
  box-shadow:none;
1509
1491
  }
1510
- [data-theme="violet"] #panel-plugins .plugins-item.active {
1511
- box-shadow:none;
1512
- }
1513
1492
  [data-theme="violet"] #panel-plugins .plugins-panel {
1514
1493
  box-shadow:none;
1515
1494
  }
1516
- [data-theme="violet"] #panel-plugins .mode-pill.active {
1517
- box-shadow:none;
1518
- }
1519
1495
  [data-theme="violet"] #panel-plugins .prompt-template-item {
1520
1496
  box-shadow:none;
1521
1497
  }