@sumaris-net/ngx-components 1.18.4 → 1.18.5

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/doc/changelog.md CHANGED
@@ -282,3 +282,6 @@
282
282
  # 1.18.4
283
283
  [fix] Autocomplete: fix search in mobile searchbar
284
284
  [enh] Material field components: allow to set 'required' as empty tag, and not only '[required]=true'
285
+
286
+ # 1.18.4
287
+ [fix] Autocomplete: fix panel width, on small screens
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "1.18.4",
4
+ "version": "1.18.5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -280,13 +280,13 @@ mat-option:not(:last-of-type) {
280
280
 
281
281
  .mat-select-panel {
282
282
  --min-width: 200px;
283
- --max-width: 100%;
283
+ --max-width: calc(min(100%, 100vw - 64px));
284
284
  min-width: var(--min-width) !important;
285
285
  max-width: var(--max-width) !important;
286
286
  }
287
287
  .mat-autocomplete-panel {
288
288
  --min-width: 250px;
289
- --max-width: 100%;
289
+ --max-width: calc(min(100%, 100vw - 64px));
290
290
  min-width: var(--min-width) !important;
291
291
  max-width: var(--max-width) !important;
292
292
  width: var(--max-width) !important;
@@ -316,10 +316,10 @@ mat-option:not(:last-of-type) {
316
316
 
317
317
  .mat-autocomplete-panel-full-size .mat-autocomplete-panel,
318
318
  .mat-autocomplete-panel-full-size.mat-autocomplete-panel {
319
- --min-width: calc(100vw - 5px);
320
- --max-width: calc(100vw - 5px);
319
+ --min-width: calc(100vw - 64px);
320
+ --max-width: calc(100vw - 64px);
321
321
  position: fixed;
322
- left: 0;
322
+ left: 32px;
323
323
  }
324
324
 
325
325
  .mat-select-panel,