@eworkbase/plugin-ai-rules 0.3.6 → 0.4.1

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/ui/style.css CHANGED
@@ -2467,6 +2467,104 @@
2467
2467
  line-height: 1.5;
2468
2468
  }
2469
2469
 
2470
+ .workbase-plugin-error {
2471
+ border: 1px solid color-mix(in srgb, var(--color-danger) 24%, var(--color-border));
2472
+ min-width: 0;
2473
+ max-height: 100%;
2474
+ color: var(--color-foreground);
2475
+ background: color-mix(in srgb, var(--color-danger) 5%, var(--color-surface));
2476
+ text-align: left;
2477
+ overflow-wrap: anywhere;
2478
+ scrollbar-color: var(--color-border-strong) transparent;
2479
+ scrollbar-width: thin;
2480
+ border-radius: 8px;
2481
+ flex-shrink: 0;
2482
+ padding: 16px 20px;
2483
+ overflow-y: auto;
2484
+ }
2485
+
2486
+ .workbase-plugin-error:focus-visible {
2487
+ outline: 2px solid var(--color-accent);
2488
+ outline-offset: -2px;
2489
+ }
2490
+
2491
+ .workbase-plugin-error .workbase-error-title {
2492
+ color: var(--color-danger);
2493
+ margin: 0 0 8px;
2494
+ font-size: 14px;
2495
+ font-weight: 600;
2496
+ line-height: 1.5;
2497
+ }
2498
+
2499
+ .workbase-plugin-error .workbase-error-cause {
2500
+ color: var(--color-foreground);
2501
+ white-space: pre-wrap;
2502
+ margin: 0;
2503
+ font-size: 14px;
2504
+ font-weight: 500;
2505
+ line-height: 1.65;
2506
+ }
2507
+
2508
+ .workbase-plugin-error .workbase-error-context {
2509
+ color: var(--color-foreground);
2510
+ margin: 8px 0 0;
2511
+ font-size: 12px;
2512
+ font-weight: 400;
2513
+ line-height: 1.65;
2514
+ }
2515
+
2516
+ .workbase-error-context strong {
2517
+ margin-right: 8px;
2518
+ font-weight: 600;
2519
+ }
2520
+
2521
+ .workbase-error-actions {
2522
+ flex-wrap: wrap;
2523
+ gap: 8px;
2524
+ margin-top: 12px;
2525
+ display: flex;
2526
+ }
2527
+
2528
+ .workbase-error-details {
2529
+ color: var(--color-foreground);
2530
+ margin-top: 12px;
2531
+ font-size: 12px;
2532
+ font-weight: 400;
2533
+ }
2534
+
2535
+ .workbase-error-details summary {
2536
+ cursor: pointer;
2537
+ text-underline-offset: 3px;
2538
+ width: fit-content;
2539
+ }
2540
+
2541
+ .workbase-error-details summary:hover {
2542
+ text-decoration: underline;
2543
+ }
2544
+
2545
+ .workbase-error-details summary:focus-visible {
2546
+ outline: 2px solid var(--color-accent);
2547
+ outline-offset: 3px;
2548
+ border-radius: 4px;
2549
+ }
2550
+
2551
+ .workbase-error-details pre {
2552
+ max-width: 100%;
2553
+ max-height: 240px;
2554
+ color: var(--color-foreground);
2555
+ background: var(--color-surface);
2556
+ white-space: pre-wrap;
2557
+ overflow-wrap: anywhere;
2558
+ scrollbar-color: var(--color-border-strong) transparent;
2559
+ scrollbar-width: thin;
2560
+ border-radius: 4px;
2561
+ margin: 8px 0 0;
2562
+ padding: 12px;
2563
+ font-size: 12px;
2564
+ line-height: 1.65;
2565
+ overflow: auto;
2566
+ }
2567
+
2470
2568
  .mantine-Notification-root {
2471
2569
  border: 1px solid var(--color-border);
2472
2570
  }
@@ -2489,6 +2587,440 @@
2489
2587
  outline-offset: 2px;
2490
2588
  }
2491
2589
 
2590
+ .workbase-execution-log {
2591
+ min-width: 0;
2592
+ font-size: 14px;
2593
+ line-height: 1.7;
2594
+ }
2595
+
2596
+ .workbase-execution-log[data-display="full"] {
2597
+ max-width: calc(75ch + 100px);
2598
+ }
2599
+
2600
+ .workbase-log-entries {
2601
+ margin: 0;
2602
+ padding: 0;
2603
+ list-style: none;
2604
+ }
2605
+
2606
+ .workbase-log-entry {
2607
+ grid-template-columns: 72px minmax(0, 1fr);
2608
+ gap: 28px;
2609
+ min-width: 0;
2610
+ padding: 0 0 20px;
2611
+ scroll-margin-top: 24px;
2612
+ display: grid;
2613
+ position: relative;
2614
+ }
2615
+
2616
+ .workbase-log-entry:last-child {
2617
+ padding-bottom: 0;
2618
+ }
2619
+
2620
+ .workbase-log-entry:before {
2621
+ content: "";
2622
+ border: 1px solid var(--color-border-strong);
2623
+ background: var(--color-surface);
2624
+ border-radius: 50%;
2625
+ width: 7px;
2626
+ height: 7px;
2627
+ position: absolute;
2628
+ top: 9px;
2629
+ left: 84px;
2630
+ }
2631
+
2632
+ .workbase-log-entry:not(:last-child):after {
2633
+ content: "";
2634
+ background: var(--color-border);
2635
+ width: 1px;
2636
+ position: absolute;
2637
+ top: 20px;
2638
+ bottom: 2px;
2639
+ left: 87px;
2640
+ }
2641
+
2642
+ .workbase-log-entry[data-status="failed"]:before {
2643
+ border-color: var(--color-danger);
2644
+ background: var(--color-danger);
2645
+ }
2646
+
2647
+ .workbase-log-entry[data-status="pending"]:before {
2648
+ border-color: var(--color-warning);
2649
+ background: var(--color-brand-weak);
2650
+ }
2651
+
2652
+ .workbase-log-entry:focus-visible {
2653
+ outline: 2px solid var(--color-accent);
2654
+ outline-offset: 4px;
2655
+ }
2656
+
2657
+ .workbase-log-time {
2658
+ color: var(--color-muted);
2659
+ font-variant-numeric: tabular-nums;
2660
+ text-align: right;
2661
+ white-space: nowrap;
2662
+ grid-area: 1 / 1;
2663
+ padding-top: 2px;
2664
+ font-size: 12px;
2665
+ }
2666
+
2667
+ .workbase-log-body {
2668
+ grid-area: 1 / 2;
2669
+ min-width: 0;
2670
+ position: relative;
2671
+ }
2672
+
2673
+ .workbase-log-heading {
2674
+ flex-wrap: wrap;
2675
+ align-items: baseline;
2676
+ gap: 4px 12px;
2677
+ min-height: 24px;
2678
+ margin-bottom: 8px;
2679
+ display: flex;
2680
+ }
2681
+
2682
+ .workbase-log-heading strong {
2683
+ overflow-wrap: anywhere;
2684
+ flex: 1;
2685
+ min-width: 0;
2686
+ font-size: 14px;
2687
+ font-weight: 600;
2688
+ }
2689
+
2690
+ .workbase-log-kind, .workbase-log-status, .workbase-log-note {
2691
+ color: var(--color-muted);
2692
+ font-size: 12px;
2693
+ }
2694
+
2695
+ .workbase-log-status {
2696
+ white-space: nowrap;
2697
+ margin-left: auto;
2698
+ }
2699
+
2700
+ .workbase-execution-log[data-display="full"] .workbase-log-heading strong {
2701
+ flex: 0 auto;
2702
+ }
2703
+
2704
+ .workbase-execution-log[data-display="full"] .workbase-log-status {
2705
+ margin-left: 0;
2706
+ }
2707
+
2708
+ .workbase-log-status[data-status="failed"], .workbase-log-error {
2709
+ color: var(--color-danger);
2710
+ }
2711
+
2712
+ .workbase-log-status[data-status="completed"] {
2713
+ color: var(--color-success);
2714
+ }
2715
+
2716
+ .workbase-log-status:is([data-status="needs_action"], [data-status="warning"]), .workbase-log-status:is([data-status="pending"], [data-status="invalid"]) {
2717
+ color: var(--color-warning);
2718
+ }
2719
+
2720
+ .workbase-log-content {
2721
+ overflow-wrap: anywhere;
2722
+ max-width: 75ch;
2723
+ }
2724
+
2725
+ .workbase-log-content > :first-child {
2726
+ margin-top: 0;
2727
+ }
2728
+
2729
+ .workbase-log-content > :last-child {
2730
+ margin-bottom: 0;
2731
+ }
2732
+
2733
+ .workbase-log-content :is(h1, h2, h3, h4) {
2734
+ margin-block: 20px 8px;
2735
+ font-size: 1em;
2736
+ line-height: 1.5;
2737
+ }
2738
+
2739
+ .workbase-log-content :is(p, ul, ol, pre, blockquote, table) {
2740
+ margin-block: 8px 12px;
2741
+ }
2742
+
2743
+ .workbase-log-content :is(ul, ol) {
2744
+ padding-left: 22px;
2745
+ }
2746
+
2747
+ .workbase-log-content ul {
2748
+ list-style: outside;
2749
+ }
2750
+
2751
+ .workbase-log-content ol {
2752
+ list-style: decimal;
2753
+ }
2754
+
2755
+ .workbase-log-content a {
2756
+ color: var(--color-brand);
2757
+ text-underline-offset: 3px;
2758
+ text-decoration: underline;
2759
+ }
2760
+
2761
+ .workbase-log-content pre, .workbase-log-details pre, .workbase-log-raw {
2762
+ background: var(--color-surface-muted);
2763
+ white-space: pre-wrap;
2764
+ overflow-wrap: anywhere;
2765
+ scrollbar-color: var(--color-border-strong) transparent;
2766
+ scrollbar-width: thin;
2767
+ max-width: 100%;
2768
+ max-height: 360px;
2769
+ padding: 12px;
2770
+ font-size: 12px;
2771
+ overflow: auto;
2772
+ }
2773
+
2774
+ .workbase-log-content table {
2775
+ display: block;
2776
+ overflow-x: auto;
2777
+ }
2778
+
2779
+ .workbase-log-content :is(th, td) {
2780
+ border-bottom: 1px solid var(--color-border);
2781
+ text-align: left;
2782
+ padding: 6px 10px;
2783
+ }
2784
+
2785
+ .workbase-log-details {
2786
+ margin-top: 10px;
2787
+ }
2788
+
2789
+ .workbase-log-details summary {
2790
+ cursor: pointer;
2791
+ width: fit-content;
2792
+ color: var(--color-muted);
2793
+ font-size: 12px;
2794
+ }
2795
+
2796
+ .workbase-log-operation > summary {
2797
+ cursor: pointer;
2798
+ border-radius: 4px;
2799
+ min-height: 28px;
2800
+ }
2801
+
2802
+ .workbase-log-operation .workbase-log-heading {
2803
+ vertical-align: middle;
2804
+ width: calc(100% - 1.25em);
2805
+ margin: 0;
2806
+ display: inline-flex;
2807
+ }
2808
+
2809
+ .workbase-log-operation[open] > summary {
2810
+ margin-bottom: 12px;
2811
+ }
2812
+
2813
+ .workbase-log-operation summary:hover {
2814
+ color: var(--color-brand);
2815
+ }
2816
+
2817
+ .workbase-execution-log summary:focus-visible {
2818
+ outline: 2px solid var(--color-accent);
2819
+ outline-offset: 4px;
2820
+ }
2821
+
2822
+ .workbase-execution-log ::selection {
2823
+ background: var(--color-brand-weak);
2824
+ color: var(--color-foreground);
2825
+ }
2826
+
2827
+ .workbase-log-anchor {
2828
+ position: absolute;
2829
+ top: 0;
2830
+ }
2831
+
2832
+ .workbase-log-calls {
2833
+ margin: 12px 0;
2834
+ padding: 0;
2835
+ list-style: none;
2836
+ }
2837
+
2838
+ .workbase-log-calls > li {
2839
+ grid-template-columns: minmax(0, 1fr) max-content max-content;
2840
+ align-items: center;
2841
+ gap: 4px 16px;
2842
+ padding-block: 8px;
2843
+ font-size: 13px;
2844
+ display: grid;
2845
+ }
2846
+
2847
+ .workbase-log-calls > li + li {
2848
+ border-top: 1px solid var(--color-border);
2849
+ }
2850
+
2851
+ .workbase-log-calls > li > span:first-child {
2852
+ overflow-wrap: anywhere;
2853
+ min-width: 0;
2854
+ }
2855
+
2856
+ .workbase-log-calls .workbase-log-note {
2857
+ white-space: nowrap;
2858
+ }
2859
+
2860
+ .workbase-log-link, .workbase-log-copy button {
2861
+ min-height: 32px;
2862
+ color: var(--color-brand);
2863
+ font: inherit;
2864
+ cursor: pointer;
2865
+ text-underline-offset: 3px;
2866
+ background: none;
2867
+ border: 0;
2868
+ padding: 4px 0;
2869
+ text-decoration: underline;
2870
+ }
2871
+
2872
+ .workbase-log-calls .workbase-log-link {
2873
+ white-space: nowrap;
2874
+ justify-self: end;
2875
+ }
2876
+
2877
+ .workbase-log-copy {
2878
+ color: var(--color-muted);
2879
+ align-items: center;
2880
+ gap: 12px;
2881
+ font-size: 12px;
2882
+ display: flex;
2883
+ }
2884
+
2885
+ .workbase-log-follow {
2886
+ justify-content: center;
2887
+ padding-top: 8px;
2888
+ display: flex;
2889
+ }
2890
+
2891
+ .workbase-log-latest {
2892
+ border: 1px solid var(--color-border-strong);
2893
+ background: var(--color-surface);
2894
+ min-height: 28px;
2895
+ color: var(--color-foreground);
2896
+ font: inherit;
2897
+ cursor: pointer;
2898
+ border-radius: 6px;
2899
+ padding: 3px 10px;
2900
+ font-size: 12px;
2901
+ }
2902
+
2903
+ .workbase-log-latest[data-following="true"] {
2904
+ visibility: hidden;
2905
+ }
2906
+
2907
+ .workbase-execution-log button:focus-visible, .workbase-log-viewport:focus-visible {
2908
+ outline: 2px solid var(--color-accent);
2909
+ outline-offset: 3px;
2910
+ }
2911
+
2912
+ .workbase-execution-log[data-display="compact"] .workbase-log-viewport {
2913
+ overscroll-behavior: contain;
2914
+ scrollbar-width: thin;
2915
+ scrollbar-color: var(--color-border-strong) transparent;
2916
+ max-height: 280px;
2917
+ padding: 2px 10px 2px 2px;
2918
+ overflow: auto;
2919
+ }
2920
+
2921
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry {
2922
+ grid-template-columns: minmax(0, 1fr) auto;
2923
+ gap: 12px;
2924
+ padding: 0 0 18px 22px;
2925
+ }
2926
+
2927
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry:before {
2928
+ top: 7px;
2929
+ left: 2px;
2930
+ }
2931
+
2932
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry:after {
2933
+ top: 18px;
2934
+ left: 5px;
2935
+ }
2936
+
2937
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry[data-status="completed"]:before {
2938
+ background: var(--color-success);
2939
+ border-color: var(--color-success);
2940
+ }
2941
+
2942
+ .workbase-execution-log[data-display="compact"] .workbase-log-time {
2943
+ grid-area: 1 / 2;
2944
+ padding: 0;
2945
+ line-height: 20px;
2946
+ }
2947
+
2948
+ .workbase-execution-log[data-display="compact"] .workbase-log-body {
2949
+ grid-area: 1 / 1;
2950
+ padding: 0;
2951
+ }
2952
+
2953
+ .workbase-execution-log[data-display="compact"] .workbase-log-heading {
2954
+ min-height: 20px;
2955
+ margin: 0;
2956
+ }
2957
+
2958
+ .workbase-execution-log[data-display="compact"] .workbase-log-heading strong {
2959
+ -webkit-line-clamp: 2;
2960
+ -webkit-box-orient: vertical;
2961
+ font-size: 13px;
2962
+ font-weight: 500;
2963
+ line-height: 20px;
2964
+ display: -webkit-box;
2965
+ overflow: hidden;
2966
+ }
2967
+
2968
+ .workbase-execution-log[data-display="compact"] .workbase-log-status {
2969
+ white-space: nowrap;
2970
+ flex-shrink: 0;
2971
+ font-size: 12px;
2972
+ }
2973
+
2974
+ .workbase-execution-log[data-display="compact"] .workbase-log-status:not([data-status="failed"], [data-status="needs_action"], [data-status="warning"], [data-status="interrupted"]) {
2975
+ clip-path: inset(50%);
2976
+ width: 1px;
2977
+ height: 1px;
2978
+ position: absolute;
2979
+ overflow: hidden;
2980
+ }
2981
+
2982
+ @media (width <= 600px) {
2983
+ .workbase-execution-log[data-display="full"] .workbase-log-entry {
2984
+ grid-template-columns: minmax(0, 1fr);
2985
+ gap: 4px;
2986
+ padding-left: 20px;
2987
+ }
2988
+
2989
+ .workbase-execution-log[data-display="full"] .workbase-log-time {
2990
+ text-align: left;
2991
+ grid-area: 1 / 1;
2992
+ }
2993
+
2994
+ .workbase-execution-log[data-display="full"] .workbase-log-body {
2995
+ grid-area: 2 / 1;
2996
+ }
2997
+
2998
+ .workbase-execution-log[data-display="full"] .workbase-log-entry:before {
2999
+ top: 9px;
3000
+ left: 0;
3001
+ }
3002
+
3003
+ .workbase-execution-log[data-display="full"] .workbase-log-entry:not(:last-child):after {
3004
+ left: 3px;
3005
+ }
3006
+
3007
+ .workbase-log-calls > li {
3008
+ grid-template-columns: minmax(0, 1fr) auto;
3009
+ }
3010
+
3011
+ .workbase-log-calls > li > span:first-child {
3012
+ grid-column: 1 / -1;
3013
+ }
3014
+
3015
+ .workbase-log-calls .workbase-log-link {
3016
+ grid-column: 2;
3017
+ }
3018
+
3019
+ .workbase-log-kind {
3020
+ margin-left: 0;
3021
+ }
3022
+ }
3023
+
2492
3024
  .maintenance-panel .mantine-Accordion-control {
2493
3025
  padding: 11px 14px;
2494
3026
  font-size: 13px;
@@ -2604,7 +3136,7 @@
2604
3136
  border-bottom-color: var(--color-brand-gold);
2605
3137
  }
2606
3138
 
2607
- .configuration-tabs button:hover {
3139
+ .configuration-tabs button:hover:not(:disabled) {
2608
3140
  color: var(--color-foreground);
2609
3141
  }
2610
3142
 
@@ -2615,7 +3147,8 @@
2615
3147
  }
2616
3148
 
2617
3149
  .configuration-tabs button:disabled {
2618
- cursor: default;
3150
+ cursor: not-allowed;
3151
+ opacity: .5;
2619
3152
  }
2620
3153
 
2621
3154
  .configuration-manager :is(button, input, select, textarea, summary, pre):focus-visible {
@@ -2673,6 +3206,12 @@
2673
3206
  opacity: 1;
2674
3207
  }
2675
3208
 
3209
+ .configuration-search:disabled {
3210
+ cursor: not-allowed;
3211
+ opacity: .5;
3212
+ background: var(--color-surface-muted);
3213
+ }
3214
+
2676
3215
  .configuration-items {
2677
3216
  align-content: start;
2678
3217
  gap: 4px;
@@ -2682,7 +3221,13 @@
2682
3221
  overflow: auto;
2683
3222
  }
2684
3223
 
3224
+ .configuration-item {
3225
+ min-width: 0;
3226
+ position: relative;
3227
+ }
3228
+
2685
3229
  .configuration-row {
3230
+ padding: 12px;
2686
3231
  text-align: left;
2687
3232
  width: 100%;
2688
3233
  color: inherit;
@@ -2693,7 +3238,7 @@
2693
3238
  border: 1px solid #0000;
2694
3239
  border-radius: 6px;
2695
3240
  gap: 5px;
2696
- padding: 12px;
3241
+ padding-inline-end: 44px;
2697
3242
  display: grid;
2698
3243
  }
2699
3244
 
@@ -2709,7 +3254,7 @@
2709
3254
  line-height: 1.5;
2710
3255
  }
2711
3256
 
2712
- .configuration-row:hover {
3257
+ .configuration-row:hover:not(:disabled) {
2713
3258
  background: var(--color-surface-muted);
2714
3259
  }
2715
3260
 
@@ -2723,7 +3268,13 @@
2723
3268
  }
2724
3269
 
2725
3270
  .configuration-row:disabled {
2726
- cursor: default;
3271
+ cursor: not-allowed;
3272
+ }
3273
+
3274
+ .configuration-editing-notice {
3275
+ color: var(--color-muted);
3276
+ margin: 0 0 12px;
3277
+ font-size: 12px;
2727
3278
  }
2728
3279
 
2729
3280
  .configuration-row:disabled:not([aria-current="true"]) {
@@ -2770,7 +3321,7 @@
2770
3321
  display: grid;
2771
3322
  }
2772
3323
 
2773
- .configuration-manager .configuration-header-feedback p {
3324
+ .configuration-manager .configuration-header-feedback > p {
2774
3325
  margin: 0;
2775
3326
  font-size: 12px;
2776
3327
  }
@@ -2783,6 +3334,34 @@
2783
3334
  min-width: 0;
2784
3335
  }
2785
3336
 
3337
+ .configuration-delete {
3338
+ opacity: 0;
3339
+ pointer-events: none;
3340
+ width: 28px;
3341
+ height: 28px;
3342
+ padding: 4px;
3343
+ position: absolute;
3344
+ inset-block-start: 8px;
3345
+ inset-inline-end: 8px;
3346
+ }
3347
+
3348
+ .configuration-delete svg {
3349
+ width: 16px;
3350
+ height: 16px;
3351
+ }
3352
+
3353
+ .configuration-item:hover .configuration-delete, .configuration-item:focus-within .configuration-delete {
3354
+ opacity: 1;
3355
+ pointer-events: auto;
3356
+ }
3357
+
3358
+ @media (hover: none), (pointer: coarse) {
3359
+ .configuration-delete {
3360
+ opacity: 1;
3361
+ pointer-events: auto;
3362
+ }
3363
+ }
3364
+
2786
3365
  .configuration-manager .configuration-detail-header h2 {
2787
3366
  letter-spacing: -.02em;
2788
3367
  overflow-wrap: anywhere;
@@ -5377,6 +5956,110 @@
5377
5956
  display: none;
5378
5957
  }
5379
5958
 
5959
+ .workbase-markdown-links {
5960
+ flex-direction: column;
5961
+ flex: 1;
5962
+ min-width: 0;
5963
+ min-height: 0;
5964
+ display: flex;
5965
+ }
5966
+
5967
+ .markdown-document-preview {
5968
+ border: 1px solid var(--color-border);
5969
+ background: var(--color-surface);
5970
+ min-width: 0;
5971
+ color: var(--color-foreground);
5972
+ border-radius: 8px;
5973
+ margin-bottom: 20px;
5974
+ padding: 20px;
5975
+ }
5976
+
5977
+ .markdown-document-heading {
5978
+ justify-content: space-between;
5979
+ align-items: start;
5980
+ gap: 16px;
5981
+ margin-bottom: 20px;
5982
+ display: flex;
5983
+ }
5984
+
5985
+ .markdown-document-heading h2 {
5986
+ margin: 0;
5987
+ font-size: 18px;
5988
+ line-height: 1.5;
5989
+ }
5990
+
5991
+ .markdown-document-heading p {
5992
+ color: var(--color-muted);
5993
+ overflow-wrap: anywhere;
5994
+ margin: 8px 0 0;
5995
+ }
5996
+
5997
+ .markdown-document-heading button, .markdown-link-error button {
5998
+ border: 1px solid var(--color-border-strong);
5999
+ background: var(--color-surface);
6000
+ color: var(--color-foreground);
6001
+ font: inherit;
6002
+ cursor: pointer;
6003
+ border-radius: 6px;
6004
+ flex-shrink: 0;
6005
+ padding: 6px 10px;
6006
+ }
6007
+
6008
+ .markdown-document-heading button:hover, .markdown-link-error button:hover {
6009
+ background: var(--color-surface-muted);
6010
+ }
6011
+
6012
+ .markdown-document-preview:focus-visible, .workbase-markdown-links button:focus-visible {
6013
+ outline: 2px solid var(--color-brand);
6014
+ outline-offset: 2px;
6015
+ }
6016
+
6017
+ .markdown-link-error {
6018
+ color: var(--color-danger);
6019
+ overflow-wrap: anywhere;
6020
+ line-height: 1.6;
6021
+ }
6022
+
6023
+ .markdown-link-error button {
6024
+ margin-inline-start: 8px;
6025
+ }
6026
+
6027
+ .workbase-markdown-links .markdown-document-body {
6028
+ max-width: 75ch;
6029
+ max-height: 65vh;
6030
+ color: var(--color-foreground);
6031
+ overflow-wrap: anywhere;
6032
+ font-family: inherit;
6033
+ font-size: 14px;
6034
+ line-height: 1.85;
6035
+ overflow: auto;
6036
+ }
6037
+
6038
+ .markdown-document-body :is(h1, h2, h3, h4, h5, h6) {
6039
+ color: var(--color-foreground);
6040
+ }
6041
+
6042
+ .markdown-document-body a {
6043
+ color: var(--color-accent);
6044
+ text-underline-offset: 3px;
6045
+ }
6046
+
6047
+ .markdown-document-body pre {
6048
+ background: var(--color-surface-muted);
6049
+ overflow: auto;
6050
+ }
6051
+
6052
+ .markdown-document-body table {
6053
+ max-width: 100%;
6054
+ display: block;
6055
+ overflow: auto;
6056
+ }
6057
+
6058
+ .markdown-document-body ::selection {
6059
+ background: var(--color-brand-weak);
6060
+ color: var(--color-foreground);
6061
+ }
6062
+
5380
6063
  .workbase-markdown-editor, .workbase-markdown-editor .vditor {
5381
6064
  --panel-background-color: var(--color-surface);
5382
6065
  --border-color: var(--color-border);
@@ -5403,17 +6086,6 @@
5403
6086
  display: block;
5404
6087
  }
5405
6088
 
5406
- .workbase-markdown-editor > select {
5407
- border: 1px solid var(--color-border);
5408
- background: var(--color-surface);
5409
- max-width: 100%;
5410
- color: var(--color-foreground);
5411
- font: inherit;
5412
- border-radius: 6px;
5413
- margin-bottom: 8px;
5414
- padding: 6px 8px;
5415
- }
5416
-
5417
6089
  .workbase-markdown-editor .vditor {
5418
6090
  border-radius: 6px;
5419
6091
  }
@@ -5491,7 +6163,7 @@
5491
6163
  box-shadow: inset 0 0 0 2px var(--color-primary);
5492
6164
  }
5493
6165
 
5494
- .workbase-markdown-editor button:focus-visible, .workbase-markdown-editor select:focus-visible {
6166
+ .workbase-markdown-editor button:focus-visible {
5495
6167
  outline: 2px solid var(--color-brand);
5496
6168
  outline-offset: 2px;
5497
6169
  }
@@ -5505,6 +6177,11 @@
5505
6177
  opacity: .7;
5506
6178
  }
5507
6179
 
6180
+ .workbase-markdown-editor[data-readonly="true"] :is(.vditor-reset, .vditor-sv)[contenteditable="false"] {
6181
+ opacity: 1;
6182
+ cursor: text;
6183
+ }
6184
+
5508
6185
  .markdown-editor-loading {
5509
6186
  color: var(--color-muted);
5510
6187
  border: 1px solid var(--color-border);