playbook_ui 18.0.0.pre.alpha.PLAY323219675 → 18.0.0.pre.alpha.PLAY323219729

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: f530e565551c7c316ded9c86c29656af59b33d7dd81d1b14358738e7c50b5a34
4
- data.tar.gz: 55086b020242981b11b7c69b60d84948f0a742299fbddfe4b63a9671d6ae9c84
3
+ metadata.gz: eab985fb5ceaa053047dc180cffe1a5f4675e5e496a0f58c61887c2c6a4e6253
4
+ data.tar.gz: 6c74de8d152d109eb6cfceab84e0b126b10b6958455b8429ec94d310168f4e9d
5
5
  SHA512:
6
- metadata.gz: e526827f48a29fb2ac5525b02f58484f9f845f7194ca330f6358d5b22b62b4df79ae170290a552685bbd48e9b6278c8a2c2aaeb2d6f68b38978bdd85d93a01cc
7
- data.tar.gz: 470eeebeafaab9eaa2c8b3baa420be05ddfa3f74235b95224ffc09c87e8ca1101636874021eeea4f1d7482be626423d632b02cca2d76bfa1ffd259222c2145bb
6
+ metadata.gz: 0b32321a1e03141678cb84f2c9ead765443fffca26e37304d5031fb96aa3aa0ded8e2dfb361e8d083e001749bcd9706ae8e783fee712558a9e7c7bbb5e5b5616
7
+ data.tar.gz: 44d006a1fd938ee9f8025a3d059217b1a9d5c40b903af65cb6d484e30107bf0bd2d1d349fcdb5e79de4d7b7cdf62511c174377c3cde0956b46d7685d9d57ce45
@@ -123,27 +123,26 @@
123
123
  }
124
124
 
125
125
  .toolbar {
126
+ $history-gutter: $space_sm + (($space_lg + $space_xxs) * 2);
127
+
126
128
  border-radius: $border_rad_heaviest $border_rad_heaviest 0 0;
127
129
  border: 1px solid $input_border_default;
128
130
  container-name: rte-toolbar;
129
131
  container-type: inline-size;
130
132
  position: relative;
131
133
 
132
- // Compact toolbar shell: controls wrap; undo/redo stay top-right.
134
+ // Prefer one row; undo/redo stay top-right. Stack tools only when they cannot share a line.
133
135
  &_inner {
134
136
  box-sizing: border-box;
135
137
  min-height: $space_lg + $space_xxs + $space_xxs * 2; // 36px button + vertical padding
136
138
  padding: $space_xxs $space_sm;
137
- // Leave room for absolute undo/redo when everything shares one row
138
- padding-right: $space_sm + (($space_lg + $space_xxs) * 2);
139
+ padding-right: $history-gutter;
139
140
  position: relative;
140
141
  }
141
142
 
142
- // When the bar wraps, history stays on row 1 — drop the undo gutter for tools
143
- @container rte-toolbar (max-width: 42rem) {
144
- .toolbar_inner {
145
- padding-right: $space_sm;
146
- }
143
+ // Tools on their own row: drop undo gutter so the tools scrollport can go edge-to-edge.
144
+ &:has(.toolbar_group_more) .toolbar_inner {
145
+ padding-right: $space_sm;
147
146
  }
148
147
 
149
148
  &_controls {
@@ -163,7 +162,6 @@
163
162
  top: $space_xxs;
164
163
  }
165
164
 
166
- // Groups: format | tools | more. With "more", narrow stacks tools under format|more.
167
165
  &_group {
168
166
  align-items: center;
169
167
  display: flex;
@@ -178,8 +176,12 @@
178
176
  }
179
177
 
180
178
  &_tools {
179
+ box-sizing: border-box;
181
180
  flex-wrap: nowrap;
181
+ max-width: 100%;
182
+ min-width: 0;
182
183
  order: 2;
184
+ overflow-x: auto;
183
185
  }
184
186
 
185
187
  &_more {
@@ -187,6 +189,7 @@
187
189
  }
188
190
  }
189
191
 
192
+ // With "more": stack tools under format|more until wide enough for one row
190
193
  &_controls:has(.toolbar_group_more) {
191
194
  .toolbar_group_more {
192
195
  order: 2;
@@ -196,7 +199,6 @@
196
199
  flex: 1 1 100%;
197
200
  order: 3;
198
201
 
199
- // Tools on their own row — no leading pipe
200
202
  > .toolbar_separator:first-child {
201
203
  display: none;
202
204
  }
@@ -204,10 +206,15 @@
204
206
  }
205
207
 
206
208
  @container rte-toolbar (min-width: 42rem) {
209
+ &:has(.toolbar_group_more) .toolbar_inner {
210
+ padding-right: $history-gutter;
211
+ }
212
+
207
213
  .toolbar_controls:has(.toolbar_group_more) {
208
214
  .toolbar_group_tools {
209
215
  flex: 0 1 auto;
210
216
  order: 2;
217
+ overflow-x: visible;
211
218
 
212
219
  > .toolbar_separator:first-child {
213
220
  display: flex;
@@ -220,8 +227,12 @@
220
227
  }
221
228
  }
222
229
 
223
- // No "more": when the bar is too narrow for format + tools, stack tools and drop the leading pipe
224
- @container rte-toolbar (max-width: 36rem) {
230
+ // No "more": full-width tools row + no leading pipe + no undo gutter when stacked
231
+ @container rte-toolbar (max-width: 40rem) {
232
+ &:not(:has(.toolbar_group_more)) .toolbar_inner {
233
+ padding-right: $space_sm;
234
+ }
235
+
225
236
  .toolbar_controls:not(:has(.toolbar_group_more)) .toolbar_group_tools {
226
237
  flex: 1 1 100%;
227
238
 
@@ -292,15 +303,6 @@
292
303
  max-width: 100%;
293
304
  min-width: 0;
294
305
 
295
- .toolbar_inner,
296
- .rte-rails-toolbar-row {
297
- box-sizing: border-box;
298
- min-height: $space_lg + $space_xxs + $space_xxs * 2;
299
- padding: $space_xxs $space_sm;
300
- padding-right: $space_sm + (($space_lg + $space_xxs) * 2);
301
- position: relative;
302
- }
303
-
304
306
  .rte-toolbar-left,
305
307
  .toolbar_controls {
306
308
  align-items: center;
@@ -320,7 +322,6 @@
320
322
  top: $space_xxs;
321
323
  }
322
324
 
323
- // Align dropdown trigger with icon row
324
325
  .pb_popover_reference_wrapper {
325
326
  align-items: center;
326
327
  display: inline-flex;
data/dist/ai/forms.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "metadataVersion": 1,
3
- "version": "18.0.0-alpha.PLAY323219675",
3
+ "version": "18.0.0-alpha.PLAY323219729",
4
4
  "builder": {
5
5
  "class": "Playbook::Forms::Builder",
6
6
  "helper": "pb_form_with",
data/dist/ai/index.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "version": "18.0.0-alpha.PLAY323219675",
2
+ "version": "18.0.0-alpha.PLAY323219729",
3
3
  "metadataVersion": 1,
4
4
  "forms": "forms.json",
5
- "generated": "2026-09-30T17:47:39.401Z",
5
+ "generated": "2026-10-01T19:35:34.080Z",
6
6
  "schemas": {
7
7
  "globalProps": "global-props.schema.json",
8
8
  "globalEventProps": "global-event-props.schema.json",