proto-plugin 0.1.4 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proto-plugin",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"
@@ -52,7 +52,8 @@ export function PrototypeGalleryClient({
52
52
 
53
53
  return (
54
54
  <>
55
- <div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
55
+ <div className="@container/gallery w-full">
56
+ <div className="grid grid-cols-1 gap-4 @xl/gallery:grid-cols-2 @4xl/gallery:grid-cols-3">
56
57
  <PrototypeGalleryAddCard onClick={() => setCreateModalOpen(true)} />
57
58
  {prototypes.map((prototype) => (
58
59
  <Link
@@ -78,7 +79,7 @@ export function PrototypeGalleryClient({
78
79
  width={1600}
79
80
  height={900}
80
81
  quality={90}
81
- sizes="(min-width: 1024px) 33vw, (min-width: 768px) 50vw, 100vw"
82
+ sizes="(min-width: 80rem) calc((100vw - 14rem) / 3), (min-width: 55rem) calc((100vw - 14rem) / 2), 100vw"
82
83
  className="h-full w-full object-cover object-top"
83
84
  />
84
85
  </div>
@@ -86,6 +87,7 @@ export function PrototypeGalleryClient({
86
87
  <p className={prototypeGalleryTitleClassName}>{prototype.title}</p>
87
88
  </Link>
88
89
  ))}
90
+ </div>
89
91
  </div>
90
92
 
91
93
  <PrototypeCreatePrototypeModal
@@ -104,7 +104,7 @@ export function PrototypeGalleryNav({
104
104
  ) : (
105
105
  <Button
106
106
  type="button"
107
- variant="outline"
107
+ variant="chrome"
108
108
  onClick={() => setLinkSourceOpen(true)}
109
109
  className="h-9 min-w-0 flex-1 justify-center rounded-lg text-sm font-medium"
110
110
  >