willba-component-library 0.1.33 → 0.1.34

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
@@ -100,7 +100,7 @@ export default function FilterBar({
100
100
  (c) => c.id === key[key.length - 1]
101
101
  )
102
102
 
103
- if (ageCategory) {
103
+ if (ageCategory && value) {
104
104
  acc += `${acc ? ' -' : ''} ${ageCategory.name}: ${value}`
105
105
  }
106
106
 
@@ -10,10 +10,7 @@
10
10
  text-align: initial;
11
11
  }
12
12
 
13
- .will-filter-bar-select-button .select-button-description {
14
- font-weight: 400;
15
- opacity: 0.4;
16
- }
13
+
17
14
 
18
15
  .will-filter-bar-select-button .select-button-wrapper {
19
16
  display: flex;
@@ -23,6 +20,20 @@
23
20
 
24
21
  }
25
22
 
23
+ .will-filter-bar-select-button .select-button-wrapper > div {
24
+ max-width: -webkit-fill-available;
25
+ }
26
+
27
+ .will-filter-bar-select-button .select-button-description {
28
+ font-weight: 400;
29
+ opacity: 0.4;
30
+
31
+
32
+ white-space: nowrap;
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
35
+ }
36
+
26
37
  @media (max-width: 960px) {
27
38
  .will-filter-bar-select-button {
28
39
  padding: 15px 0;
@@ -37,6 +48,10 @@
37
48
  text-align: center;
38
49
  }
39
50
 
51
+ .will-filter-bar-select-button .select-button-description {
52
+ white-space: wrap;
53
+ }
54
+
40
55
  .will-filter-bar-select-button .select-button-divider {
41
56
  display: none
42
57
  }