@revikornmann/muka-ui 0.44.0 → 0.44.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.
@@ -55,9 +55,9 @@
55
55
  }
56
56
 
57
57
  /*
58
- * Truncate: one line. The current page shortens first, down to
59
- * breadcrumb.truncate.current.minWidth (or the full width, if that is less);
60
- * after that the earlier levels shorten too, each with an ellipsis.
58
+ * Truncate: one line. The current page shortens first, but not below the
59
+ * smaller of breadcrumb.truncate.current.minWidth and its longest word; after
60
+ * that the earlier levels shorten too, each with an ellipsis.
61
61
  */
62
62
  .muka-breadcrumb--truncate {
63
63
  min-width: 0;
@@ -73,9 +73,15 @@
73
73
  flex: 0 1 auto;
74
74
  }
75
75
 
76
+ /*
77
+ * The floor comes from flexbox's automatic minimum, min(min-content, width):
78
+ * `width` is only that floor (flex-basis: content keeps the natural width), so
79
+ * a current page narrower than the floor never reserves space it doesn't use.
80
+ */
76
81
  .muka-breadcrumb--truncate .muka-breadcrumb__item:last-child {
77
- flex-shrink: 1000;
78
- min-width: min(var(--breadcrumb-truncate-current-minWidth), 100%);
82
+ flex: 0 1000 content;
83
+ width: var(--breadcrumb-truncate-current-minWidth);
84
+ min-width: auto;
79
85
  }
80
86
 
81
87
  .muka-breadcrumb--truncate .muka-breadcrumb__chip {
@@ -55,9 +55,9 @@
55
55
  }
56
56
 
57
57
  /*
58
- * Truncate: one line. The current page shortens first, down to
59
- * breadcrumb.truncate.current.minWidth (or the full width, if that is less);
60
- * after that the earlier levels shorten too, each with an ellipsis.
58
+ * Truncate: one line. The current page shortens first, but not below the
59
+ * smaller of breadcrumb.truncate.current.minWidth and its longest word; after
60
+ * that the earlier levels shorten too, each with an ellipsis.
61
61
  */
62
62
  .muka-breadcrumb--truncate {
63
63
  min-width: 0;
@@ -73,9 +73,15 @@
73
73
  flex: 0 1 auto;
74
74
  }
75
75
 
76
+ /*
77
+ * The floor comes from flexbox's automatic minimum, min(min-content, width):
78
+ * `width` is only that floor (flex-basis: content keeps the natural width), so
79
+ * a current page narrower than the floor never reserves space it doesn't use.
80
+ */
76
81
  .muka-breadcrumb--truncate .muka-breadcrumb__item:last-child {
77
- flex-shrink: 1000;
78
- min-width: min(var(--breadcrumb-truncate-current-minWidth), 100%);
82
+ flex: 0 1000 content;
83
+ width: var(--breadcrumb-truncate-current-minWidth);
84
+ min-width: auto;
79
85
  }
80
86
 
81
87
  .muka-breadcrumb--truncate .muka-breadcrumb__chip {
@@ -55,9 +55,9 @@
55
55
  }
56
56
 
57
57
  /*
58
- * Truncate: one line. The current page shortens first, down to
59
- * breadcrumb.truncate.current.minWidth (or the full width, if that is less);
60
- * after that the earlier levels shorten too, each with an ellipsis.
58
+ * Truncate: one line. The current page shortens first, but not below the
59
+ * smaller of breadcrumb.truncate.current.minWidth and its longest word; after
60
+ * that the earlier levels shorten too, each with an ellipsis.
61
61
  */
62
62
  .muka-breadcrumb--truncate {
63
63
  min-width: 0;
@@ -73,9 +73,15 @@
73
73
  flex: 0 1 auto;
74
74
  }
75
75
 
76
+ /*
77
+ * The floor comes from flexbox's automatic minimum, min(min-content, width):
78
+ * `width` is only that floor (flex-basis: content keeps the natural width), so
79
+ * a current page narrower than the floor never reserves space it doesn't use.
80
+ */
76
81
  .muka-breadcrumb--truncate .muka-breadcrumb__item:last-child {
77
- flex-shrink: 1000;
78
- min-width: min(var(--breadcrumb-truncate-current-minWidth), 100%);
82
+ flex: 0 1000 content;
83
+ width: var(--breadcrumb-truncate-current-minWidth);
84
+ min-width: auto;
79
85
  }
80
86
 
81
87
  .muka-breadcrumb--truncate .muka-breadcrumb__chip {