@internetarchive/collection-browser 2.14.2-alpha-webdev7679.3 → 2.14.2-alpha-webdev7679.4

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.
@@ -1322,7 +1322,6 @@ export class CollectionBrowser
1322
1322
  this.tvClipFilter = queryState.tvClipFilter ?? 'all';
1323
1323
 
1324
1324
  this.pagesToRender = this.initialPageNumber;
1325
- console.log('pages to render:', this.pagesToRender);
1326
1325
 
1327
1326
  // We set this flag during the update to prevent the URL state persistence
1328
1327
  // from creating an unwanted extra history entry.
@@ -716,7 +716,10 @@ export class CollectionBrowserDataSource
716
716
  }
717
717
 
718
718
  // Add any selected facets and internal filters
719
- const combinedFilters = mergeSelectedFacets(internalFilters, selectedFacets);
719
+ const combinedFilters = mergeSelectedFacets(
720
+ internalFilters,
721
+ selectedFacets,
722
+ );
720
723
  if (combinedFilters) {
721
724
  for (const [facetName, facetValues] of Object.entries(combinedFilters)) {
722
725
  const { name, values } = this.prepareFacetForFetch(
@@ -182,6 +182,7 @@ export class HoverPaneController implements HoverPaneControllerInterface {
182
182
  return this.shouldRenderHoverPane
183
183
  ? html` ${this.touchBackdropTemplate}
184
184
  <tile-hover-pane
185
+ popover
185
186
  .model=${this.hoverPaneProps?.model}
186
187
  .baseNavigationUrl=${this.hoverPaneProps?.baseNavigationUrl}
187
188
  .baseImageUrl=${this.hoverPaneProps?.baseImageUrl}
@@ -304,9 +305,9 @@ export class HoverPaneController implements HoverPaneControllerInterface {
304
305
  }
305
306
 
306
307
  // Subtract off the tile's own offsets
307
- const hostRect = this.host.getBoundingClientRect();
308
- left -= hostRect.left;
309
- top -= hostRect.top;
308
+ // const hostRect = this.host.getBoundingClientRect();
309
+ // left -= hostRect.left;
310
+ // top -= hostRect.top;
310
311
 
311
312
  return { left, top };
312
313
  }
@@ -466,6 +467,7 @@ export class HoverPaneController implements HoverPaneControllerInterface {
466
467
 
467
468
  // Wait for the state update to render the hover pane
468
469
  await this.host.updateComplete;
470
+ this.hoverPane?.togglePopover(true);
469
471
  await new Promise(resolve => {
470
472
  // Pane sizes aren't accurate until next frame
471
473
  requestAnimationFrame(resolve);
@@ -92,6 +92,12 @@ export class TileHoverPane extends LitElement {
92
92
 
93
93
  return css`
94
94
  :host {
95
+ margin: 0;
96
+ border: 0;
97
+ padding: 0;
98
+ overflow: visible;
99
+ color: inherit;
100
+ background: none;
95
101
  visibility: hidden;
96
102
  opacity: 0;
97
103
  transform: translateY(8px);
@@ -146,6 +152,7 @@ export class TileHoverPane extends LitElement {
146
152
  column-gap: 5px;
147
153
  height: 3.4rem;
148
154
  padding: 0 10px;
155
+ border-radius: 4px 4px 0 0;
149
156
  width: fit-content;
150
157
  font-size: 1.4rem;
151
158
  color: ${iaLinkColor};