@asd20/ui 3.2.455 → 3.2.457

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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.455",
8
+ "version": "3.2.457",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -4,7 +4,7 @@
4
4
  v-for="(item, index) in items"
5
5
  :key="index"
6
6
  v-bind="item"
7
- size="lg"
7
+ :size="zoomed ? 'md' : 'lg'"
8
8
  />
9
9
  <slot />
10
10
  </div>
@@ -20,6 +20,7 @@ export default {
20
20
  props: {
21
21
  open: { type: Boolean, default: false },
22
22
  items: { type: Array, default: () => actionItems },
23
+ zoomed: { type: Boolean, default: false },
23
24
  },
24
25
 
25
26
  computed: {
@@ -3,7 +3,7 @@
3
3
  <asd20-action-menu-item
4
4
  ref="menuButton"
5
5
  id="menu-toggle-button"
6
- :size="size"
6
+ :size="desktop && !zoomed ? 'lg' : 'md'"
7
7
  class="menu-button"
8
8
  :icon="menuActive ? 'close' : 'menu'"
9
9
  :label="menuActive ? 'Close' : 'Menu'"
@@ -17,7 +17,7 @@
17
17
  <asd20-action-menu-item
18
18
  ref="searchButton"
19
19
  id="search-toggle-button"
20
- :size="size"
20
+ :size="desktop && !zoomed ? 'lg' : 'md'"
21
21
  class="search-button"
22
22
  :icon="searchActive ? 'close' : 'search'"
23
23
  :label="searchActive ? 'Close' : 'Search'"
@@ -42,6 +42,8 @@ export default {
42
42
  searchActive: { type: Boolean, default: false },
43
43
  collapsed: { type: Boolean, default: false },
44
44
  condensed: { type: Boolean, default: false },
45
+ desktop: { type: Boolean, default: false },
46
+ zoomed: { type: Boolean, default: false },
45
47
  },
46
48
  computed: {
47
49
  size() {
@@ -10,6 +10,8 @@
10
10
  :search-active="searchOpen"
11
11
  @update:searchActive="$emit('update:searchOpen', $event)"
12
12
  :collapsed="collapsed"
13
+ :zoomed="zoomed"
14
+ :desktop="desktop"
13
15
  @keyboardTriggeredLastAction="keyboardTriggeredLastAction = $event"
14
16
  >
15
17
  <!-- <asd20-district-logo
@@ -49,6 +51,7 @@
49
51
  "
50
52
  :items="actionItems"
51
53
  :active="menuOpen"
54
+ :zoomed="zoomed"
52
55
  @update:active="$emit('update:menuOpen', $event)"
53
56
  />
54
57
  </transition>
@@ -140,7 +143,8 @@ export default {
140
143
  },
141
144
  mounted() {
142
145
  this.desktop = window.innerWidth >= 1024
143
- this.zoomed = window.innerHeight <= 500
146
+ this.zoomed = window.innerHeight <= 650
147
+
144
148
  this.isLoaded = true
145
149
  window.addEventListener('resize', this.handleResize)
146
150
  },
@@ -150,7 +154,7 @@ export default {
150
154
  },
151
155
  handleResize() {
152
156
  this.desktop = window.innerWidth >= 1024
153
- this.zoomed = window.innerHeight <= 500
157
+ this.zoomed = window.innerHeight <= 650
154
158
  },
155
159
  },
156
160
  }
@@ -124,12 +124,12 @@
124
124
  display: table;
125
125
  clear: both;
126
126
  }
127
- // If more than 24 items are in the list,
127
+ // If more than 30 items are in the list,
128
128
  // split into up to 12 columns
129
129
  // with a minimum width of 240px
130
130
  // and ensure at least a 1rem space between columns
131
- .asd20-messaging li:first-child:nth-last-child(n+24),
132
- .asd20-messaging li:first-child:nth-last-child(n+24) ~ li {
131
+ .asd20-messaging li:first-child:nth-last-child(n+30),
132
+ .asd20-messaging li:first-child:nth-last-child(n+30) ~ li {
133
133
  width: clamp(160px, 100vw/12, 100%);
134
134
  padding-right: 1rem;
135
135
  float:left;