completion-kit 0.5.24 → 0.5.25

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40c107320c801c5cfcb008355620aadb4bf8ec4776113f52dd5e2d5c130a2ce8
4
- data.tar.gz: 840088253b8efcd92163e858f4d95783889007c6b9c32662db3a1004225462a9
3
+ metadata.gz: 23d8d27292c7265cc9994f64cab9832952e3a2ce5617b621f1301bf13de2f40a
4
+ data.tar.gz: 5955a65e338fec0c7d8492e53ead7c2b22eeb60cafff25343ac8addbee282cb3
5
5
  SHA512:
6
- metadata.gz: b5efc624e8fe825ac927ec9bb87ffbc750e7862ec8aeb064a830d3f4b585136119db33a3f3d41a6064fb60db05fd93675bff9cb5b71007e9aea7722d79e6bdd6
7
- data.tar.gz: d664c0f3e623ba91750f2752b60b4f2bc147a08f8287558f3cff466a7da5d60242d8275db63e15c10ea818fe5fe6f2dc4066ff85a138383c2e10e6cdd2b79ace
6
+ metadata.gz: 7f67e4055ecad48ac6ff18363fa1c2783af959b861c42086207c0dfef037625112989af4ba61da700e930fac74f7cb62d964945ad2fad8ea2b295d622c7d122a
7
+ data.tar.gz: d1c6be8d93c2f784d7f6493dc1fc46cb751d7d77860515772d4c11ebf7578ea5405236d879cbaa160bfa2eb9873475a6ddf2c56aae9b93381f20d225935f5214
@@ -2837,6 +2837,19 @@ select.ck-input {
2837
2837
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
2838
2838
  z-index: 50;
2839
2839
  }
2840
+
2841
+ /* Dashboard prompt-changes row stacks instead of cramming the name into
2842
+ a few characters. */
2843
+ .ck-improvement {
2844
+ flex-direction: column;
2845
+ align-items: flex-start;
2846
+ gap: 0.3rem;
2847
+ }
2848
+ .ck-improvement__name { white-space: normal; }
2849
+ .ck-improvement__delta { min-width: 0; text-align: left; }
2850
+
2851
+ /* Onboarding's decorative field bleeds ±3rem past the page — clip it. */
2852
+ .ck-launch { overflow-x: clip; }
2840
2853
  }
2841
2854
 
2842
2855
  .ck-api-endpoint {
@@ -2911,6 +2924,10 @@ select.ck-input {
2911
2924
 
2912
2925
  .ck-token-toggle {
2913
2926
  transition: border-color 0.15s, color 0.15s;
2927
+ max-width: 100%;
2928
+ white-space: normal;
2929
+ overflow-wrap: anywhere;
2930
+ text-align: left;
2914
2931
  }
2915
2932
 
2916
2933
  .ck-token-toggle:hover {
@@ -3010,6 +3027,13 @@ select.ck-input {
3010
3027
  grid-template-columns: 1fr;
3011
3028
  }
3012
3029
 
3030
+ /* Without this the nav and panels keep their min-content width and spill
3031
+ past the single grid column — clipped by .ck-api-tabs' overflow:hidden. */
3032
+ .ck-api-tabs__nav,
3033
+ .ck-api-tabs__panels {
3034
+ min-width: 0;
3035
+ }
3036
+
3013
3037
  .ck-api-tabs__nav {
3014
3038
  flex-direction: row;
3015
3039
  flex-wrap: wrap;
@@ -3605,6 +3629,46 @@ table.ck-runs-table {
3605
3629
  white-space: nowrap;
3606
3630
  }
3607
3631
 
3632
+ /* Runs table on a phone. Placed after the base .ck-runs-table rules so these
3633
+ win on source order. A 6-column table can't fit a phone, so each run row
3634
+ becomes a stacked block: the run name + sub-line take the full width on
3635
+ top, and the score / timestamp / arrow flow in a row beneath. The two
3636
+ secondary numeric columns (responses, metrics) are dropped — they live on
3637
+ the run's own page. */
3638
+ @media (max-width: 640px) {
3639
+ table.ck-runs-table { display: block; overflow-x: visible; }
3640
+ .ck-runs-table thead { display: none; }
3641
+ .ck-runs-table tbody { display: block; }
3642
+ .ck-runs-table tr {
3643
+ display: flex;
3644
+ flex-wrap: wrap;
3645
+ align-items: center;
3646
+ gap: 0.45rem 0.9rem;
3647
+ padding: 0.9rem 0;
3648
+ }
3649
+ .ck-runs-table td {
3650
+ display: block;
3651
+ padding: 0;
3652
+ }
3653
+ .ck-runs-table td:first-child { flex: 1 1 100%; }
3654
+ .ck-runs-table td:nth-child(2),
3655
+ .ck-runs-table td:nth-child(3) { display: none; }
3656
+ /* width overrides need column-level specificity to beat the base rules
3657
+ (the timestamp column otherwise keeps its desktop width: 1%). */
3658
+ .ck-runs-table td:first-child,
3659
+ .ck-runs-table td:nth-child(4),
3660
+ .ck-runs-table td:nth-child(5),
3661
+ .ck-runs-table td:last-child,
3662
+ .ck-runs-table td:has(time[data-relative-time]) { width: auto; }
3663
+ .ck-runs-table__identity { width: auto; }
3664
+ .ck-runs-table .ck-run-name strong {
3665
+ white-space: normal;
3666
+ overflow: visible;
3667
+ text-overflow: clip;
3668
+ }
3669
+ .ck-runs-table__config { white-space: normal; }
3670
+ }
3671
+
3608
3672
  .ck-response-cell__index {
3609
3673
  font-family: var(--ck-mono);
3610
3674
  font-size: 0.78rem;
@@ -3681,6 +3745,8 @@ table.ck-runs-table {
3681
3745
  border-radius: var(--ck-radius);
3682
3746
  border: 1px solid var(--ck-line);
3683
3747
  user-select: all;
3748
+ min-width: 0;
3749
+ overflow-wrap: anywhere;
3684
3750
  }
3685
3751
 
3686
3752
  .ck-prompt-preview__text {
@@ -1,3 +1,3 @@
1
1
  module CompletionKit
2
- VERSION = "0.5.24"
2
+ VERSION = "0.5.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: completion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.24
4
+ version: 0.5.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Bastin