katalyst-koi 5.10.0 → 5.10.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 319724f0fb3d95cdb522b2255aff29edd723b82d30a719b772e47ffcae3e4c98
4
- data.tar.gz: fd2421bb764b29caf26567b5b41df493fb77083c6bff490db7b4c01eff1f08ad
3
+ metadata.gz: c3e2b2ca17dd2789b12ddd789224ef73a7a228720b11a32ebdf4135638fc45ce
4
+ data.tar.gz: 14bda6fe74f1aa09f7ed42b65bccc2254b4004400de8d63f8f032a10b9fa9a34
5
5
  SHA512:
6
- metadata.gz: d558ecb83c1aaa9503a689c56af22c7000a0fb5ad9230f59ec8c8db02ed98e2f1883452893fbd556600cebee65e131913f63f728b8819dddd02d6b4f79b8474b
7
- data.tar.gz: 2e1b7ad2aef1522792bf15f767b1500e6abfd8c718070c094b2fda2be93dce2ad0d5928f19214f401786f6848cdb482752e4c84c162799a8667c14a0b4b626ec
6
+ metadata.gz: 0d99e8812b4b76fd04dd00580eb3a0b682205f05859c4171c670144ed5404fda58d20c31d9efb40c3a1489eb2f9e1bfeae3f684d95c3b94e48acea8dac1e102f
7
+ data.tar.gz: d4e131447acea95376a53d66c6ea33bb56d6a4d02f31751ce2c96cea4a8b5e76f9c21b2d60c477489762f062cd6701f917a103e36df6547c1c71e8cec1d275d5
@@ -27,6 +27,7 @@
27
27
  display: block;
28
28
  position: relative;
29
29
  z-index: 0;
30
+ container: govuk-file-upload / inline-size;
30
31
  border: var(--stroke-input);
31
32
  border-radius: var(--input-radius);
32
33
  padding: var(--space-xs-s);
@@ -121,6 +122,7 @@
121
122
 
122
123
  .preview {
123
124
  grid-area: preview;
125
+ align-self: center;
124
126
  max-width: 4rem;
125
127
  aspect-ratio: 1/1;
126
128
  object-fit: cover;
@@ -138,6 +140,7 @@
138
140
 
139
141
  .filename {
140
142
  font-weight: var(--font-bold);
143
+ word-break: break-all;
141
144
  }
142
145
 
143
146
  .size {
@@ -200,6 +203,23 @@
200
203
  }
201
204
  }
202
205
 
206
+ /* Too narrow for a third column: the actions move to their own row. */
207
+ @container govuk-file-upload (width < 20rem) {
208
+ .govuk-attachment {
209
+ grid-template-areas:
210
+ "preview caption"
211
+ "actions actions";
212
+ grid-template-columns: auto 1fr;
213
+
214
+ .actions {
215
+ flex-direction: row;
216
+ justify-content: flex-end;
217
+ flex-wrap: wrap;
218
+ gap: var(--space-2xs);
219
+ }
220
+ }
221
+ }
222
+
203
223
  /* With JavaScript running the button is the figure's only interactive
204
224
  control; the select still carries the submitted value but leaves the
205
225
  display, tab order, and accessibility tree. */
@@ -42,7 +42,7 @@ class BackgroundJob
42
42
 
43
43
  # Serialized as an ISO8601 string in the payload; parse so views can format it.
44
44
  def enqueued_at
45
- job.arguments["enqueued_at"]&.then { |value| Time.iso8601(value) }
45
+ job.arguments["enqueued_at"]&.then { |value| Time.zone.iso8601(value) }
46
46
  end
47
47
 
48
48
  # The arguments the job was enqueued with, from the serialized payload.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-koi
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.0
4
+ version: 5.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive