@xuda.io/xuda-widget-plugin-xuda-drive 1.0.8 → 1.0.10
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 +1 -1
- package/runtime.mjs +2 -2
package/package.json
CHANGED
package/runtime.mjs
CHANGED
|
@@ -579,7 +579,7 @@ export async function viewer(fields, e) {
|
|
|
579
579
|
try {
|
|
580
580
|
const ret = search_drive();
|
|
581
581
|
|
|
582
|
-
for (let file of ret.data
|
|
582
|
+
for (let file of ret.data) {
|
|
583
583
|
switch (viewer_type) {
|
|
584
584
|
case "gallery": {
|
|
585
585
|
e.$containerP.append(`
|
|
@@ -588,7 +588,7 @@ export async function viewer(fields, e) {
|
|
|
588
588
|
<ul role="list" class="grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-6 md:grid-cols-4 lg:grid-cols-3 xl:grid-cols-4 xl:gap-x-8 [&>li>div>img]:aspect-[3/2]">
|
|
589
589
|
<li class="relative">
|
|
590
590
|
<div class="aspect-w-10 aspect-h-7 group block w-full overflow-hidden rounded-lg bg-gray-100 ring-2 ring-indigo-500 ring-offset-2" x-state:on="Current" x-state:off="Default" x-state-description='Current: "ring-2 ring-indigo-500 ring-offset-2", Default: "focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100"'>
|
|
591
|
-
<img src="
|
|
591
|
+
<img src="${file.file_url}" alt="${file.name}" class="pointer-events-none object-cover" x-state:on="Current" x-state:off="Default" x-state-description='Current: "", Default: "group-hover:opacity-75"' />
|
|
592
592
|
<button type="button" class="absolute inset-0 focus:outline-none">
|
|
593
593
|
<span class="sr-only">View details for IMG_4985.HEIC</span>
|
|
594
594
|
</button>
|