@revikornmann/muka-ui 0.45.1 → 0.45.2

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.
@@ -192,9 +192,23 @@
192
192
  width: 100%;
193
193
  }
194
194
 
195
+ /*
196
+ * Many choices (a phone with seven options) would push the field and the step
197
+ * footer off screen. The card gets a height limit and scrolls on its own, so
198
+ * the prompt, the field and the footer stay in view.
199
+ */
195
200
  .muka-chat-composer__choices-card {
196
201
  width: 100%;
197
- overflow: hidden;
202
+ max-height: 45dvh;
203
+ overflow-x: hidden;
204
+ overflow-y: auto;
205
+ overscroll-behavior: contain;
206
+ }
207
+
208
+ /* A choice is one short line, not a navigation row: compact padding. */
209
+ .muka-chat-composer__choice.muka-listitem {
210
+ align-items: center;
211
+ padding-block: var(--spacing-3);
198
212
  }
199
213
 
200
214
  /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
@@ -192,9 +192,23 @@
192
192
  width: 100%;
193
193
  }
194
194
 
195
+ /*
196
+ * Many choices (a phone with seven options) would push the field and the step
197
+ * footer off screen. The card gets a height limit and scrolls on its own, so
198
+ * the prompt, the field and the footer stay in view.
199
+ */
195
200
  .muka-chat-composer__choices-card {
196
201
  width: 100%;
197
- overflow: hidden;
202
+ max-height: 45dvh;
203
+ overflow-x: hidden;
204
+ overflow-y: auto;
205
+ overscroll-behavior: contain;
206
+ }
207
+
208
+ /* A choice is one short line, not a navigation row: compact padding. */
209
+ .muka-chat-composer__choice.muka-listitem {
210
+ align-items: center;
211
+ padding-block: var(--spacing-3);
198
212
  }
199
213
 
200
214
  /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is
@@ -192,9 +192,23 @@
192
192
  width: 100%;
193
193
  }
194
194
 
195
+ /*
196
+ * Many choices (a phone with seven options) would push the field and the step
197
+ * footer off screen. The card gets a height limit and scrolls on its own, so
198
+ * the prompt, the field and the footer stay in view.
199
+ */
195
200
  .muka-chat-composer__choices-card {
196
201
  width: 100%;
197
- overflow: hidden;
202
+ max-height: 45dvh;
203
+ overflow-x: hidden;
204
+ overflow-y: auto;
205
+ overscroll-behavior: contain;
206
+ }
207
+
208
+ /* A choice is one short line, not a navigation row: compact padding. */
209
+ .muka-chat-composer__choice.muka-listitem {
210
+ align-items: center;
211
+ padding-block: var(--spacing-3);
198
212
  }
199
213
 
200
214
  /* Choice rows: the ListItem is the interactive control; the Radio/Checkbox is