@eworkbase/plugin-ai-rules 0.3.6 → 0.4.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/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,461 @@
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
+ align-items: center;
2800
+ gap: 12px;
2801
+ min-height: 28px;
2802
+ list-style: none;
2803
+ display: flex;
2804
+ }
2805
+
2806
+ .workbase-log-operation > summary::-webkit-details-marker {
2807
+ display: none;
2808
+ }
2809
+
2810
+ .workbase-log-operation .workbase-log-heading {
2811
+ flex: 1;
2812
+ margin: 0;
2813
+ }
2814
+
2815
+ .workbase-log-operation[open] > summary {
2816
+ margin-bottom: 12px;
2817
+ }
2818
+
2819
+ .workbase-log-chevron {
2820
+ width: 6px;
2821
+ height: 6px;
2822
+ color: var(--color-muted);
2823
+ border-bottom: 1px solid;
2824
+ border-right: 1px solid;
2825
+ flex-shrink: 0;
2826
+ margin-right: 4px;
2827
+ transform: rotate(-45deg);
2828
+ }
2829
+
2830
+ .workbase-log-operation[open] > summary .workbase-log-chevron {
2831
+ transform: rotate(45deg);
2832
+ }
2833
+
2834
+ .workbase-log-operation summary:hover {
2835
+ color: var(--color-brand);
2836
+ }
2837
+
2838
+ .workbase-execution-log summary:focus-visible {
2839
+ outline: 2px solid var(--color-accent);
2840
+ outline-offset: 4px;
2841
+ }
2842
+
2843
+ .workbase-execution-log ::selection {
2844
+ background: var(--color-brand-weak);
2845
+ color: var(--color-foreground);
2846
+ }
2847
+
2848
+ .workbase-log-anchor {
2849
+ position: absolute;
2850
+ top: 0;
2851
+ }
2852
+
2853
+ .workbase-log-calls {
2854
+ margin: 12px 0;
2855
+ padding: 0;
2856
+ list-style: none;
2857
+ }
2858
+
2859
+ .workbase-log-calls > li {
2860
+ grid-template-columns: minmax(0, 1fr) max-content max-content;
2861
+ align-items: center;
2862
+ gap: 4px 16px;
2863
+ padding-block: 8px;
2864
+ font-size: 13px;
2865
+ display: grid;
2866
+ }
2867
+
2868
+ .workbase-log-calls > li + li {
2869
+ border-top: 1px solid var(--color-border);
2870
+ }
2871
+
2872
+ .workbase-log-calls > li > span:first-child {
2873
+ overflow-wrap: anywhere;
2874
+ min-width: 0;
2875
+ }
2876
+
2877
+ .workbase-log-calls .workbase-log-note {
2878
+ white-space: nowrap;
2879
+ }
2880
+
2881
+ .workbase-log-link, .workbase-log-copy button {
2882
+ min-height: 32px;
2883
+ color: var(--color-brand);
2884
+ font: inherit;
2885
+ cursor: pointer;
2886
+ text-underline-offset: 3px;
2887
+ background: none;
2888
+ border: 0;
2889
+ padding: 4px 0;
2890
+ text-decoration: underline;
2891
+ }
2892
+
2893
+ .workbase-log-calls .workbase-log-link {
2894
+ white-space: nowrap;
2895
+ justify-self: end;
2896
+ }
2897
+
2898
+ .workbase-log-copy {
2899
+ color: var(--color-muted);
2900
+ align-items: center;
2901
+ gap: 12px;
2902
+ font-size: 12px;
2903
+ display: flex;
2904
+ }
2905
+
2906
+ .workbase-log-follow {
2907
+ justify-content: center;
2908
+ padding-top: 8px;
2909
+ display: flex;
2910
+ }
2911
+
2912
+ .workbase-log-latest {
2913
+ border: 1px solid var(--color-border-strong);
2914
+ background: var(--color-surface);
2915
+ min-height: 28px;
2916
+ color: var(--color-foreground);
2917
+ font: inherit;
2918
+ cursor: pointer;
2919
+ border-radius: 6px;
2920
+ padding: 3px 10px;
2921
+ font-size: 12px;
2922
+ }
2923
+
2924
+ .workbase-log-latest[data-following="true"] {
2925
+ visibility: hidden;
2926
+ }
2927
+
2928
+ .workbase-execution-log button:focus-visible, .workbase-log-viewport:focus-visible {
2929
+ outline: 2px solid var(--color-accent);
2930
+ outline-offset: 3px;
2931
+ }
2932
+
2933
+ .workbase-execution-log[data-display="compact"] .workbase-log-viewport {
2934
+ overscroll-behavior: contain;
2935
+ scrollbar-width: thin;
2936
+ scrollbar-color: var(--color-border-strong) transparent;
2937
+ max-height: 280px;
2938
+ padding: 2px 10px 2px 2px;
2939
+ overflow: auto;
2940
+ }
2941
+
2942
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry {
2943
+ grid-template-columns: minmax(0, 1fr) auto;
2944
+ gap: 12px;
2945
+ padding: 0 0 18px 22px;
2946
+ }
2947
+
2948
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry:before {
2949
+ top: 7px;
2950
+ left: 2px;
2951
+ }
2952
+
2953
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry:after {
2954
+ top: 18px;
2955
+ left: 5px;
2956
+ }
2957
+
2958
+ .workbase-execution-log[data-display="compact"] .workbase-log-entry[data-status="completed"]:before {
2959
+ background: var(--color-success);
2960
+ border-color: var(--color-success);
2961
+ }
2962
+
2963
+ .workbase-execution-log[data-display="compact"] .workbase-log-time {
2964
+ grid-area: 1 / 2;
2965
+ padding: 0;
2966
+ line-height: 20px;
2967
+ }
2968
+
2969
+ .workbase-execution-log[data-display="compact"] .workbase-log-body {
2970
+ grid-area: 1 / 1;
2971
+ padding: 0;
2972
+ }
2973
+
2974
+ .workbase-execution-log[data-display="compact"] .workbase-log-heading {
2975
+ min-height: 20px;
2976
+ margin: 0;
2977
+ }
2978
+
2979
+ .workbase-execution-log[data-display="compact"] .workbase-log-heading strong {
2980
+ -webkit-line-clamp: 2;
2981
+ -webkit-box-orient: vertical;
2982
+ font-size: 13px;
2983
+ font-weight: 500;
2984
+ line-height: 20px;
2985
+ display: -webkit-box;
2986
+ overflow: hidden;
2987
+ }
2988
+
2989
+ .workbase-execution-log[data-display="compact"] .workbase-log-status {
2990
+ white-space: nowrap;
2991
+ flex-shrink: 0;
2992
+ font-size: 12px;
2993
+ }
2994
+
2995
+ .workbase-execution-log[data-display="compact"] .workbase-log-status:not([data-status="failed"], [data-status="needs_action"], [data-status="warning"], [data-status="interrupted"]) {
2996
+ clip-path: inset(50%);
2997
+ width: 1px;
2998
+ height: 1px;
2999
+ position: absolute;
3000
+ overflow: hidden;
3001
+ }
3002
+
3003
+ @media (width <= 600px) {
3004
+ .workbase-execution-log[data-display="full"] .workbase-log-entry {
3005
+ grid-template-columns: minmax(0, 1fr);
3006
+ gap: 4px;
3007
+ padding-left: 20px;
3008
+ }
3009
+
3010
+ .workbase-execution-log[data-display="full"] .workbase-log-time {
3011
+ text-align: left;
3012
+ grid-area: 1 / 1;
3013
+ }
3014
+
3015
+ .workbase-execution-log[data-display="full"] .workbase-log-body {
3016
+ grid-area: 2 / 1;
3017
+ }
3018
+
3019
+ .workbase-execution-log[data-display="full"] .workbase-log-entry:before {
3020
+ top: 9px;
3021
+ left: 0;
3022
+ }
3023
+
3024
+ .workbase-execution-log[data-display="full"] .workbase-log-entry:not(:last-child):after {
3025
+ left: 3px;
3026
+ }
3027
+
3028
+ .workbase-log-calls > li {
3029
+ grid-template-columns: minmax(0, 1fr) auto;
3030
+ }
3031
+
3032
+ .workbase-log-calls > li > span:first-child {
3033
+ grid-column: 1 / -1;
3034
+ }
3035
+
3036
+ .workbase-log-calls .workbase-log-link {
3037
+ grid-column: 2;
3038
+ }
3039
+
3040
+ .workbase-log-kind {
3041
+ margin-left: 0;
3042
+ }
3043
+ }
3044
+
2492
3045
  .maintenance-panel .mantine-Accordion-control {
2493
3046
  padding: 11px 14px;
2494
3047
  font-size: 13px;
@@ -2604,7 +3157,7 @@
2604
3157
  border-bottom-color: var(--color-brand-gold);
2605
3158
  }
2606
3159
 
2607
- .configuration-tabs button:hover {
3160
+ .configuration-tabs button:hover:not(:disabled) {
2608
3161
  color: var(--color-foreground);
2609
3162
  }
2610
3163
 
@@ -2615,7 +3168,8 @@
2615
3168
  }
2616
3169
 
2617
3170
  .configuration-tabs button:disabled {
2618
- cursor: default;
3171
+ cursor: not-allowed;
3172
+ opacity: .5;
2619
3173
  }
2620
3174
 
2621
3175
  .configuration-manager :is(button, input, select, textarea, summary, pre):focus-visible {
@@ -2673,6 +3227,12 @@
2673
3227
  opacity: 1;
2674
3228
  }
2675
3229
 
3230
+ .configuration-search:disabled {
3231
+ cursor: not-allowed;
3232
+ opacity: .5;
3233
+ background: var(--color-surface-muted);
3234
+ }
3235
+
2676
3236
  .configuration-items {
2677
3237
  align-content: start;
2678
3238
  gap: 4px;
@@ -2682,7 +3242,13 @@
2682
3242
  overflow: auto;
2683
3243
  }
2684
3244
 
3245
+ .configuration-item {
3246
+ min-width: 0;
3247
+ position: relative;
3248
+ }
3249
+
2685
3250
  .configuration-row {
3251
+ padding: 12px;
2686
3252
  text-align: left;
2687
3253
  width: 100%;
2688
3254
  color: inherit;
@@ -2693,7 +3259,7 @@
2693
3259
  border: 1px solid #0000;
2694
3260
  border-radius: 6px;
2695
3261
  gap: 5px;
2696
- padding: 12px;
3262
+ padding-inline-end: 44px;
2697
3263
  display: grid;
2698
3264
  }
2699
3265
 
@@ -2709,7 +3275,7 @@
2709
3275
  line-height: 1.5;
2710
3276
  }
2711
3277
 
2712
- .configuration-row:hover {
3278
+ .configuration-row:hover:not(:disabled) {
2713
3279
  background: var(--color-surface-muted);
2714
3280
  }
2715
3281
 
@@ -2723,7 +3289,13 @@
2723
3289
  }
2724
3290
 
2725
3291
  .configuration-row:disabled {
2726
- cursor: default;
3292
+ cursor: not-allowed;
3293
+ }
3294
+
3295
+ .configuration-editing-notice {
3296
+ color: var(--color-muted);
3297
+ margin: 0 0 12px;
3298
+ font-size: 12px;
2727
3299
  }
2728
3300
 
2729
3301
  .configuration-row:disabled:not([aria-current="true"]) {
@@ -2770,7 +3342,7 @@
2770
3342
  display: grid;
2771
3343
  }
2772
3344
 
2773
- .configuration-manager .configuration-header-feedback p {
3345
+ .configuration-manager .configuration-header-feedback > p {
2774
3346
  margin: 0;
2775
3347
  font-size: 12px;
2776
3348
  }
@@ -2783,6 +3355,34 @@
2783
3355
  min-width: 0;
2784
3356
  }
2785
3357
 
3358
+ .configuration-delete {
3359
+ opacity: 0;
3360
+ pointer-events: none;
3361
+ width: 28px;
3362
+ height: 28px;
3363
+ padding: 4px;
3364
+ position: absolute;
3365
+ inset-block-start: 8px;
3366
+ inset-inline-end: 8px;
3367
+ }
3368
+
3369
+ .configuration-delete svg {
3370
+ width: 16px;
3371
+ height: 16px;
3372
+ }
3373
+
3374
+ .configuration-item:hover .configuration-delete, .configuration-item:focus-within .configuration-delete {
3375
+ opacity: 1;
3376
+ pointer-events: auto;
3377
+ }
3378
+
3379
+ @media (hover: none), (pointer: coarse) {
3380
+ .configuration-delete {
3381
+ opacity: 1;
3382
+ pointer-events: auto;
3383
+ }
3384
+ }
3385
+
2786
3386
  .configuration-manager .configuration-detail-header h2 {
2787
3387
  letter-spacing: -.02em;
2788
3388
  overflow-wrap: anywhere;
@@ -5377,6 +5977,110 @@
5377
5977
  display: none;
5378
5978
  }
5379
5979
 
5980
+ .workbase-markdown-links {
5981
+ flex-direction: column;
5982
+ flex: 1;
5983
+ min-width: 0;
5984
+ min-height: 0;
5985
+ display: flex;
5986
+ }
5987
+
5988
+ .markdown-document-preview {
5989
+ border: 1px solid var(--color-border);
5990
+ background: var(--color-surface);
5991
+ min-width: 0;
5992
+ color: var(--color-foreground);
5993
+ border-radius: 8px;
5994
+ margin-bottom: 20px;
5995
+ padding: 20px;
5996
+ }
5997
+
5998
+ .markdown-document-heading {
5999
+ justify-content: space-between;
6000
+ align-items: start;
6001
+ gap: 16px;
6002
+ margin-bottom: 20px;
6003
+ display: flex;
6004
+ }
6005
+
6006
+ .markdown-document-heading h2 {
6007
+ margin: 0;
6008
+ font-size: 18px;
6009
+ line-height: 1.5;
6010
+ }
6011
+
6012
+ .markdown-document-heading p {
6013
+ color: var(--color-muted);
6014
+ overflow-wrap: anywhere;
6015
+ margin: 8px 0 0;
6016
+ }
6017
+
6018
+ .markdown-document-heading button, .markdown-link-error button {
6019
+ border: 1px solid var(--color-border-strong);
6020
+ background: var(--color-surface);
6021
+ color: var(--color-foreground);
6022
+ font: inherit;
6023
+ cursor: pointer;
6024
+ border-radius: 6px;
6025
+ flex-shrink: 0;
6026
+ padding: 6px 10px;
6027
+ }
6028
+
6029
+ .markdown-document-heading button:hover, .markdown-link-error button:hover {
6030
+ background: var(--color-surface-muted);
6031
+ }
6032
+
6033
+ .markdown-document-preview:focus-visible, .workbase-markdown-links button:focus-visible {
6034
+ outline: 2px solid var(--color-brand);
6035
+ outline-offset: 2px;
6036
+ }
6037
+
6038
+ .markdown-link-error {
6039
+ color: var(--color-danger);
6040
+ overflow-wrap: anywhere;
6041
+ line-height: 1.6;
6042
+ }
6043
+
6044
+ .markdown-link-error button {
6045
+ margin-inline-start: 8px;
6046
+ }
6047
+
6048
+ .workbase-markdown-links .markdown-document-body {
6049
+ max-width: 75ch;
6050
+ max-height: 65vh;
6051
+ color: var(--color-foreground);
6052
+ overflow-wrap: anywhere;
6053
+ font-family: inherit;
6054
+ font-size: 14px;
6055
+ line-height: 1.85;
6056
+ overflow: auto;
6057
+ }
6058
+
6059
+ .markdown-document-body :is(h1, h2, h3, h4, h5, h6) {
6060
+ color: var(--color-foreground);
6061
+ }
6062
+
6063
+ .markdown-document-body a {
6064
+ color: var(--color-accent);
6065
+ text-underline-offset: 3px;
6066
+ }
6067
+
6068
+ .markdown-document-body pre {
6069
+ background: var(--color-surface-muted);
6070
+ overflow: auto;
6071
+ }
6072
+
6073
+ .markdown-document-body table {
6074
+ max-width: 100%;
6075
+ display: block;
6076
+ overflow: auto;
6077
+ }
6078
+
6079
+ .markdown-document-body ::selection {
6080
+ background: var(--color-brand-weak);
6081
+ color: var(--color-foreground);
6082
+ }
6083
+
5380
6084
  .workbase-markdown-editor, .workbase-markdown-editor .vditor {
5381
6085
  --panel-background-color: var(--color-surface);
5382
6086
  --border-color: var(--color-border);
@@ -5403,17 +6107,6 @@
5403
6107
  display: block;
5404
6108
  }
5405
6109
 
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
6110
  .workbase-markdown-editor .vditor {
5418
6111
  border-radius: 6px;
5419
6112
  }
@@ -5491,7 +6184,7 @@
5491
6184
  box-shadow: inset 0 0 0 2px var(--color-primary);
5492
6185
  }
5493
6186
 
5494
- .workbase-markdown-editor button:focus-visible, .workbase-markdown-editor select:focus-visible {
6187
+ .workbase-markdown-editor button:focus-visible {
5495
6188
  outline: 2px solid var(--color-brand);
5496
6189
  outline-offset: 2px;
5497
6190
  }
@@ -5505,6 +6198,11 @@
5505
6198
  opacity: .7;
5506
6199
  }
5507
6200
 
6201
+ .workbase-markdown-editor[data-readonly="true"] :is(.vditor-reset, .vditor-sv)[contenteditable="false"] {
6202
+ opacity: 1;
6203
+ cursor: text;
6204
+ }
6205
+
5508
6206
  .markdown-editor-loading {
5509
6207
  color: var(--color-muted);
5510
6208
  border: 1px solid var(--color-border);