astro-tractstack 2.0.0-rc.37 → 2.0.0-rc.38

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": "astro-tractstack",
3
- "version": "2.0.0-rc.37",
3
+ "version": "2.0.0-rc.38",
4
4
  "description": "Astro integration for TractStack - redeeming the web from boring experiences",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -74,7 +74,7 @@ export default function SearchModal({
74
74
  <Dialog.Backdrop className="fixed inset-0 z-50 bg-black bg-opacity-50 backdrop-blur-sm" />
75
75
  <Dialog.Positioner className="fixed inset-0 z-50 flex items-start justify-center p-4 pt-16">
76
76
  <Dialog.Content
77
- className="bg-mywhite w-full max-w-4xl overflow-hidden rounded-lg shadow-2xl"
77
+ className="bg-mywhite w-full max-w-5xl overflow-hidden rounded-lg shadow-2xl"
78
78
  style={{ height: '80vh', display: 'flex', flexDirection: 'column' }}
79
79
  >
80
80
  {/* Fixed Header */}
@@ -97,7 +97,14 @@ export default function SearchResults({
97
97
  }
98
98
  });
99
99
 
100
- return items;
100
+ return items.sort((a, b) => {
101
+ const aHasRealImage = a.imageSrc !== '/static.jpg';
102
+ const bHasRealImage = b.imageSrc !== '/static.jpg';
103
+
104
+ if (aHasRealImage && !bHasRealImage) return -1;
105
+ if (!aHasRealImage && bHasRealImage) return 1;
106
+ return 0;
107
+ });
101
108
  }, [results, contentMap]);
102
109
 
103
110
  const totalPages = Math.ceil(allResultItems.length / ITEMS_PER_PAGE);