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 +4 -4
- data/app/assets/stylesheets/koi/forms/file-upload.css +20 -0
- data/app/models/background_job.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3e2b2ca17dd2789b12ddd789224ef73a7a228720b11a32ebdf4135638fc45ce
|
|
4
|
+
data.tar.gz: 14bda6fe74f1aa09f7ed42b65bccc2254b4004400de8d63f8f032a10b9fa9a34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|