@bagelink/vue 0.0.899 → 0.0.901
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/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/index.cjs +32 -17
- package/dist/index.mjs +32 -17
- package/dist/style.css +27 -16
- package/package.json +1 -1
- package/src/components/lightbox/Lightbox.vue +28 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AA0RA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AASpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,QAO5D;AAED,iBAAS,KAAK,SAGb;;;;;AAqeD,wBAMG"}
|
package/dist/index.cjs
CHANGED
|
@@ -18663,11 +18663,11 @@ const _hoisted_11$1 = {
|
|
|
18663
18663
|
};
|
|
18664
18664
|
const _hoisted_12$1 = ["src"];
|
|
18665
18665
|
const _hoisted_13$1 = { class: "position-start m-05 flex opacity-7" };
|
|
18666
|
-
const _hoisted_14 = {
|
|
18666
|
+
const _hoisted_14$1 = {
|
|
18667
18667
|
key: 0,
|
|
18668
18668
|
class: "progress"
|
|
18669
18669
|
};
|
|
18670
|
-
const _hoisted_15 = ["src"];
|
|
18670
|
+
const _hoisted_15$1 = ["src"];
|
|
18671
18671
|
const _hoisted_16 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
18672
18672
|
const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
18673
18673
|
__name: "FileUpload",
|
|
@@ -19009,7 +19009,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
19009
19009
|
class: vue.normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
|
|
19010
19010
|
style: vue.normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
19011
19011
|
}, [
|
|
19012
|
-
fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
|
|
19012
|
+
fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$1, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
|
|
19013
19013
|
vue.createVNode(vue.unref(_sfc_main$c), {
|
|
19014
19014
|
class: "success",
|
|
19015
19015
|
icon: "check"
|
|
@@ -19020,7 +19020,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
19020
19020
|
class: "single-preview",
|
|
19021
19021
|
src: fileToUrl(fileQ.file),
|
|
19022
19022
|
alt: ""
|
|
19023
|
-
}, null, 8, _hoisted_15)) : vue.createCommentVNode("", true)
|
|
19023
|
+
}, null, 8, _hoisted_15$1)) : vue.createCommentVNode("", true)
|
|
19024
19024
|
], 2);
|
|
19025
19025
|
}), 128))
|
|
19026
19026
|
])) : vue.createCommentVNode("", true)
|
|
@@ -55231,7 +55231,7 @@ class Bagel {
|
|
|
55231
55231
|
}
|
|
55232
55232
|
const _hoisted_1 = {
|
|
55233
55233
|
key: 0,
|
|
55234
|
-
class: "navigation flex space-between px-3 w-100 absolute"
|
|
55234
|
+
class: "navigation flex space-between px-3 w-100 absolute m_px-1"
|
|
55235
55235
|
};
|
|
55236
55236
|
const _hoisted_2 = { class: "flex start fixed top-1 w-100 space-between px-1" };
|
|
55237
55237
|
const _hoisted_3 = {
|
|
@@ -55244,16 +55244,18 @@ const _hoisted_6 = ["src"];
|
|
|
55244
55244
|
const _hoisted_7 = ["src", "title"];
|
|
55245
55245
|
const _hoisted_8 = {
|
|
55246
55246
|
key: 3,
|
|
55247
|
-
class: "file-info txt-white flex align-items-start gap-
|
|
55247
|
+
class: "file-info txt-white flex m_block align-items-start gap-025"
|
|
55248
55248
|
};
|
|
55249
55249
|
const _hoisted_9 = { class: "txt-start" };
|
|
55250
|
-
const _hoisted_10 = { class: "
|
|
55251
|
-
const _hoisted_11 = { class: "
|
|
55252
|
-
const _hoisted_12 = {
|
|
55250
|
+
const _hoisted_10 = { class: "mx-0 light" };
|
|
55251
|
+
const _hoisted_11 = { class: "semi word-break-all" };
|
|
55252
|
+
const _hoisted_12 = { class: "mx-0" };
|
|
55253
|
+
const _hoisted_13 = { class: "semi" };
|
|
55254
|
+
const _hoisted_14 = {
|
|
55253
55255
|
key: 0,
|
|
55254
55256
|
class: "flex justify-content-center mt-2 overflow p-1 fixed bottom start end gap-1 m_justify-content-start"
|
|
55255
55257
|
};
|
|
55256
|
-
const
|
|
55258
|
+
const _hoisted_15 = ["src", "onClick"];
|
|
55257
55259
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
55258
55260
|
__name: "Lightbox",
|
|
55259
55261
|
setup(__props, { expose: __expose }) {
|
|
@@ -55435,13 +55437,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55435
55437
|
class: "vw90"
|
|
55436
55438
|
}, null, 8, _hoisted_7)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
55437
55439
|
vue.createVNode(vue.unref(_sfc_main$c), {
|
|
55438
|
-
class: "m-0",
|
|
55440
|
+
class: "m-0 m_none",
|
|
55439
55441
|
icon: "draft",
|
|
55440
|
-
size:
|
|
55442
|
+
size: 10,
|
|
55443
|
+
weight: "12"
|
|
55444
|
+
}),
|
|
55445
|
+
vue.createVNode(vue.unref(_sfc_main$c), {
|
|
55446
|
+
class: "m-0 none m_block m_-mb-1",
|
|
55447
|
+
icon: "draft",
|
|
55448
|
+
size: 4,
|
|
55449
|
+
weight: "2"
|
|
55441
55450
|
}),
|
|
55442
55451
|
vue.createElementVNode("div", _hoisted_9, [
|
|
55443
|
-
vue.createElementVNode("p", _hoisted_10,
|
|
55444
|
-
|
|
55452
|
+
vue.createElementVNode("p", _hoisted_10, [
|
|
55453
|
+
_cache[5] || (_cache[5] = vue.createTextVNode(" File: ")),
|
|
55454
|
+
vue.createElementVNode("span", _hoisted_11, vue.toDisplayString((_p = vue.unref(currentItem)) == null ? void 0 : _p.name), 1)
|
|
55455
|
+
]),
|
|
55456
|
+
vue.createElementVNode("p", _hoisted_12, [
|
|
55457
|
+
_cache[6] || (_cache[6] = vue.createTextVNode(" Type: ")),
|
|
55458
|
+
vue.createElementVNode("span", _hoisted_13, vue.toDisplayString((_q = vue.unref(currentItem)) == null ? void 0 : _q.type), 1)
|
|
55459
|
+
]),
|
|
55445
55460
|
vue.createVNode(vue.unref(Btn), {
|
|
55446
55461
|
href: (_r2 = vue.unref(currentItem)) == null ? void 0 : _r2.src,
|
|
55447
55462
|
target: "_blank",
|
|
@@ -55453,7 +55468,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55453
55468
|
])
|
|
55454
55469
|
]))
|
|
55455
55470
|
]),
|
|
55456
|
-
vue.unref(group) && vue.unref(group).length > 1 ? (vue.openBlock(), vue.createElementBlock("div",
|
|
55471
|
+
vue.unref(group) && vue.unref(group).length > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
|
55457
55472
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(group), (item, index2) => {
|
|
55458
55473
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
55459
55474
|
item.type === "image" ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
@@ -55462,7 +55477,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55462
55477
|
src: item.src,
|
|
55463
55478
|
alt: "",
|
|
55464
55479
|
onClick: ($event) => selectItem(index2)
|
|
55465
|
-
}, null, 10,
|
|
55480
|
+
}, null, 10, _hoisted_15)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
|
|
55466
55481
|
key: 1,
|
|
55467
55482
|
class: vue.normalizeClass(["thumbnail object-fit-cover hover opacity-5 ed flex bg-popup justify-content-center align-items-center flex-shrink-0", { active: vue.unref(currentIndex) === index2 }]),
|
|
55468
55483
|
icon: "description",
|
|
@@ -55480,7 +55495,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55480
55495
|
};
|
|
55481
55496
|
}
|
|
55482
55497
|
});
|
|
55483
|
-
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
55498
|
+
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d8f24aae"]]);
|
|
55484
55499
|
const groups = {};
|
|
55485
55500
|
let clickHandler = (_e2) => void 0;
|
|
55486
55501
|
const lightboxDirective = {
|
package/dist/index.mjs
CHANGED
|
@@ -18661,11 +18661,11 @@ const _hoisted_11$1 = {
|
|
|
18661
18661
|
};
|
|
18662
18662
|
const _hoisted_12$1 = ["src"];
|
|
18663
18663
|
const _hoisted_13$1 = { class: "position-start m-05 flex opacity-7" };
|
|
18664
|
-
const _hoisted_14 = {
|
|
18664
|
+
const _hoisted_14$1 = {
|
|
18665
18665
|
key: 0,
|
|
18666
18666
|
class: "progress"
|
|
18667
18667
|
};
|
|
18668
|
-
const _hoisted_15 = ["src"];
|
|
18668
|
+
const _hoisted_15$1 = ["src"];
|
|
18669
18669
|
const _hoisted_16 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
|
|
18670
18670
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
18671
18671
|
__name: "FileUpload",
|
|
@@ -19007,7 +19007,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
19007
19007
|
class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
|
|
19008
19008
|
style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
|
|
19009
19009
|
}, [
|
|
19010
|
-
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
19010
|
+
fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_14$1, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
|
|
19011
19011
|
createVNode(unref(_sfc_main$c), {
|
|
19012
19012
|
class: "success",
|
|
19013
19013
|
icon: "check"
|
|
@@ -19018,7 +19018,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
19018
19018
|
class: "single-preview",
|
|
19019
19019
|
src: fileToUrl(fileQ.file),
|
|
19020
19020
|
alt: ""
|
|
19021
|
-
}, null, 8, _hoisted_15)) : createCommentVNode("", true)
|
|
19021
|
+
}, null, 8, _hoisted_15$1)) : createCommentVNode("", true)
|
|
19022
19022
|
], 2);
|
|
19023
19023
|
}), 128))
|
|
19024
19024
|
])) : createCommentVNode("", true)
|
|
@@ -55229,7 +55229,7 @@ class Bagel {
|
|
|
55229
55229
|
}
|
|
55230
55230
|
const _hoisted_1 = {
|
|
55231
55231
|
key: 0,
|
|
55232
|
-
class: "navigation flex space-between px-3 w-100 absolute"
|
|
55232
|
+
class: "navigation flex space-between px-3 w-100 absolute m_px-1"
|
|
55233
55233
|
};
|
|
55234
55234
|
const _hoisted_2 = { class: "flex start fixed top-1 w-100 space-between px-1" };
|
|
55235
55235
|
const _hoisted_3 = {
|
|
@@ -55242,16 +55242,18 @@ const _hoisted_6 = ["src"];
|
|
|
55242
55242
|
const _hoisted_7 = ["src", "title"];
|
|
55243
55243
|
const _hoisted_8 = {
|
|
55244
55244
|
key: 3,
|
|
55245
|
-
class: "file-info txt-white flex align-items-start gap-
|
|
55245
|
+
class: "file-info txt-white flex m_block align-items-start gap-025"
|
|
55246
55246
|
};
|
|
55247
55247
|
const _hoisted_9 = { class: "txt-start" };
|
|
55248
|
-
const _hoisted_10 = { class: "
|
|
55249
|
-
const _hoisted_11 = { class: "
|
|
55250
|
-
const _hoisted_12 = {
|
|
55248
|
+
const _hoisted_10 = { class: "mx-0 light" };
|
|
55249
|
+
const _hoisted_11 = { class: "semi word-break-all" };
|
|
55250
|
+
const _hoisted_12 = { class: "mx-0" };
|
|
55251
|
+
const _hoisted_13 = { class: "semi" };
|
|
55252
|
+
const _hoisted_14 = {
|
|
55251
55253
|
key: 0,
|
|
55252
55254
|
class: "flex justify-content-center mt-2 overflow p-1 fixed bottom start end gap-1 m_justify-content-start"
|
|
55253
55255
|
};
|
|
55254
|
-
const
|
|
55256
|
+
const _hoisted_15 = ["src", "onClick"];
|
|
55255
55257
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55256
55258
|
__name: "Lightbox",
|
|
55257
55259
|
setup(__props, { expose: __expose }) {
|
|
@@ -55433,13 +55435,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55433
55435
|
class: "vw90"
|
|
55434
55436
|
}, null, 8, _hoisted_7)) : (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
55435
55437
|
createVNode(unref(_sfc_main$c), {
|
|
55436
|
-
class: "m-0",
|
|
55438
|
+
class: "m-0 m_none",
|
|
55437
55439
|
icon: "draft",
|
|
55438
|
-
size:
|
|
55440
|
+
size: 10,
|
|
55441
|
+
weight: "12"
|
|
55442
|
+
}),
|
|
55443
|
+
createVNode(unref(_sfc_main$c), {
|
|
55444
|
+
class: "m-0 none m_block m_-mb-1",
|
|
55445
|
+
icon: "draft",
|
|
55446
|
+
size: 4,
|
|
55447
|
+
weight: "2"
|
|
55439
55448
|
}),
|
|
55440
55449
|
createElementVNode("div", _hoisted_9, [
|
|
55441
|
-
createElementVNode("p", _hoisted_10,
|
|
55442
|
-
|
|
55450
|
+
createElementVNode("p", _hoisted_10, [
|
|
55451
|
+
_cache[5] || (_cache[5] = createTextVNode(" File: ")),
|
|
55452
|
+
createElementVNode("span", _hoisted_11, toDisplayString((_p = unref(currentItem)) == null ? void 0 : _p.name), 1)
|
|
55453
|
+
]),
|
|
55454
|
+
createElementVNode("p", _hoisted_12, [
|
|
55455
|
+
_cache[6] || (_cache[6] = createTextVNode(" Type: ")),
|
|
55456
|
+
createElementVNode("span", _hoisted_13, toDisplayString((_q = unref(currentItem)) == null ? void 0 : _q.type), 1)
|
|
55457
|
+
]),
|
|
55443
55458
|
createVNode(unref(Btn), {
|
|
55444
55459
|
href: (_r2 = unref(currentItem)) == null ? void 0 : _r2.src,
|
|
55445
55460
|
target: "_blank",
|
|
@@ -55451,7 +55466,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55451
55466
|
])
|
|
55452
55467
|
]))
|
|
55453
55468
|
]),
|
|
55454
|
-
unref(group) && unref(group).length > 1 ? (openBlock(), createElementBlock("div",
|
|
55469
|
+
unref(group) && unref(group).length > 1 ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
55455
55470
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(group), (item, index2) => {
|
|
55456
55471
|
return openBlock(), createElementBlock(Fragment$1, { key: index2 }, [
|
|
55457
55472
|
item.type === "image" ? (openBlock(), createElementBlock("img", {
|
|
@@ -55460,7 +55475,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55460
55475
|
src: item.src,
|
|
55461
55476
|
alt: "",
|
|
55462
55477
|
onClick: ($event) => selectItem(index2)
|
|
55463
|
-
}, null, 10,
|
|
55478
|
+
}, null, 10, _hoisted_15)) : (openBlock(), createBlock(unref(_sfc_main$c), {
|
|
55464
55479
|
key: 1,
|
|
55465
55480
|
class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 ed flex bg-popup justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
|
|
55466
55481
|
icon: "description",
|
|
@@ -55478,7 +55493,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55478
55493
|
};
|
|
55479
55494
|
}
|
|
55480
55495
|
});
|
|
55481
|
-
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
55496
|
+
const Lightbox$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d8f24aae"]]);
|
|
55482
55497
|
const groups = {};
|
|
55483
55498
|
let clickHandler = (_e2) => void 0;
|
|
55484
55499
|
const lightboxDirective = {
|
package/dist/style.css
CHANGED
|
@@ -3488,19 +3488,19 @@ tbody tr[data-v-d8ca38b1]:hover {
|
|
|
3488
3488
|
-moz-user-drag: none;
|
|
3489
3489
|
}
|
|
3490
3490
|
|
|
3491
|
-
.lightbox-image[data-v-
|
|
3491
|
+
.lightbox-image[data-v-d8f24aae]{
|
|
3492
3492
|
object-fit: contain;
|
|
3493
3493
|
}
|
|
3494
|
-
.bgl-lightbox-overlay[data-v-
|
|
3494
|
+
.bgl-lightbox-overlay[data-v-d8f24aae] {
|
|
3495
3495
|
background: rgba(0, 0, 0, 0.8);
|
|
3496
3496
|
}
|
|
3497
|
-
.bgl-lightbox[data-v-
|
|
3497
|
+
.bgl-lightbox[data-v-d8f24aae] {
|
|
3498
3498
|
max-height: 90%;
|
|
3499
3499
|
}
|
|
3500
|
-
.bgl-lightbox-item[data-v-
|
|
3501
|
-
animation: 500ms ease bgl-lightbox-load-
|
|
3500
|
+
.bgl-lightbox-item[data-v-d8f24aae]{
|
|
3501
|
+
animation: 500ms ease bgl-lightbox-load-d8f24aae;
|
|
3502
3502
|
}
|
|
3503
|
-
@keyframes bgl-lightbox-load-
|
|
3503
|
+
@keyframes bgl-lightbox-load-d8f24aae {
|
|
3504
3504
|
from {
|
|
3505
3505
|
scale:0.7;
|
|
3506
3506
|
}
|
|
@@ -3508,37 +3508,48 @@ to {
|
|
|
3508
3508
|
scale:1;
|
|
3509
3509
|
}
|
|
3510
3510
|
}
|
|
3511
|
-
.bgl-lightbox-item[data-v-
|
|
3511
|
+
.bgl-lightbox-item[data-v-d8f24aae] * {
|
|
3512
3512
|
max-width: 90%;
|
|
3513
3513
|
max-height: calc(80vh - 90px);
|
|
3514
3514
|
border-radius: 3px;
|
|
3515
3515
|
margin: auto;
|
|
3516
|
-
animation: 200ms ease bgl-lightbox-load-
|
|
3516
|
+
animation: 200ms ease bgl-lightbox-load-d8f24aae;
|
|
3517
3517
|
}
|
|
3518
|
-
.navigation[data-v-
|
|
3518
|
+
.navigation[data-v-d8f24aae] {
|
|
3519
3519
|
top: 50%;
|
|
3520
3520
|
transform: translateY(-50%);
|
|
3521
3521
|
}
|
|
3522
|
-
.navigation-btn[data-v-
|
|
3522
|
+
.navigation-btn[data-v-d8f24aae] {
|
|
3523
3523
|
width: var(--input-height);
|
|
3524
3524
|
height: var(--input-height);
|
|
3525
3525
|
}
|
|
3526
|
-
.thumbnail[data-v-
|
|
3526
|
+
.thumbnail[data-v-d8f24aae] {
|
|
3527
3527
|
height: 50px;
|
|
3528
3528
|
width: 50px;
|
|
3529
3529
|
}
|
|
3530
|
-
.thumbnail[data-v-
|
|
3530
|
+
.thumbnail[data-v-d8f24aae]:hover {
|
|
3531
3531
|
opacity: 1;
|
|
3532
3532
|
}
|
|
3533
|
-
.thumbnail[data-v-
|
|
3533
|
+
.thumbnail[data-v-d8f24aae]:active {
|
|
3534
3534
|
opacity: 0.8;
|
|
3535
3535
|
}
|
|
3536
|
-
.thumbnail.active[data-v-
|
|
3536
|
+
.thumbnail.active[data-v-d8f24aae] {
|
|
3537
3537
|
opacity: 1;
|
|
3538
3538
|
outline: 2px solid white;
|
|
3539
3539
|
}
|
|
3540
|
-
.file-info[data-v-
|
|
3541
|
-
|
|
3540
|
+
.file-info[data-v-d8f24aae]{
|
|
3541
|
+
max-width: 420px
|
|
3542
|
+
}
|
|
3543
|
+
@media screen and (max-width: 910px) {
|
|
3544
|
+
.file-info[data-v-d8f24aae]{
|
|
3545
|
+
max-width: 220px;
|
|
3546
|
+
text-align: center !important;
|
|
3547
|
+
}
|
|
3548
|
+
.file-info[data-v-d8f24aae] *{
|
|
3549
|
+
text-align: center !important;
|
|
3550
|
+
margin-inline: 0 !important;;
|
|
3551
|
+
max-width: 100% !important;
|
|
3552
|
+
}
|
|
3542
3553
|
}
|
|
3543
3554
|
|
|
3544
3555
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { LightboxItem } from './lightbox.types'
|
|
3
2
|
import { BglVideo, Btn, Icon, Zoomer } from '@bagelink/vue'
|
|
4
3
|
|
|
5
4
|
import { watch } from 'vue'
|
|
5
|
+
import type { LightboxItem } from './lightbox.types'
|
|
6
6
|
|
|
7
7
|
let isOpen = $ref(false)
|
|
8
8
|
let currentItem = $ref<LightboxItem>()
|
|
@@ -84,7 +84,7 @@ defineExpose({ open, close })
|
|
|
84
84
|
@keydown.right="next"
|
|
85
85
|
@click="clickOutside"
|
|
86
86
|
>
|
|
87
|
-
<div v-if="group && group.length > 1" class="navigation flex space-between px-3 w-100 absolute">
|
|
87
|
+
<div v-if="group && group.length > 1" class="navigation flex space-between px-3 w-100 absolute m_px-1">
|
|
88
88
|
<Btn
|
|
89
89
|
class="navigation-btn oval"
|
|
90
90
|
icon="arrow_back"
|
|
@@ -144,14 +144,22 @@ defineExpose({ open, close })
|
|
|
144
144
|
>
|
|
145
145
|
</template>
|
|
146
146
|
<template v-else>
|
|
147
|
-
<div class="file-info txt-white flex align-items-start gap-
|
|
148
|
-
<Icon class="m-0" icon="draft" :size="
|
|
147
|
+
<div class="file-info txt-white flex m_block align-items-start gap-025">
|
|
148
|
+
<Icon class="m-0 m_none" icon="draft" :size="10" weight="12" />
|
|
149
|
+
<Icon class="m-0 none m_block m_-mb-1" icon="draft" :size="4" weight="2" />
|
|
150
|
+
|
|
149
151
|
<div class="txt-start">
|
|
150
|
-
<p class="
|
|
151
|
-
File:
|
|
152
|
+
<p class="mx-0 light">
|
|
153
|
+
File:
|
|
154
|
+
<span class="semi word-break-all ">
|
|
155
|
+
{{ currentItem?.name }}
|
|
156
|
+
</span>
|
|
152
157
|
</p>
|
|
153
|
-
<p class="
|
|
154
|
-
Type:
|
|
158
|
+
<p class="mx-0 ">
|
|
159
|
+
Type:
|
|
160
|
+
<span class="semi">
|
|
161
|
+
{{ currentItem?.type }}
|
|
162
|
+
</span>
|
|
155
163
|
</p>
|
|
156
164
|
<Btn :href="currentItem?.src" target="_blank" round thin class="mt-1" value="Open file" />
|
|
157
165
|
<!-- <a :href="currentItem?.src" target="_blank">Open file</a> -->
|
|
@@ -253,6 +261,17 @@ defineExpose({ open, close })
|
|
|
253
261
|
outline: 2px solid white;
|
|
254
262
|
}
|
|
255
263
|
.file-info{
|
|
256
|
-
|
|
264
|
+
max-width: 420px
|
|
265
|
+
}
|
|
266
|
+
@media screen and (max-width: 910px) {
|
|
267
|
+
.file-info{
|
|
268
|
+
max-width: 220px;
|
|
269
|
+
text-align: center !important;
|
|
270
|
+
}
|
|
271
|
+
.file-info *{
|
|
272
|
+
text-align: center !important;
|
|
273
|
+
margin-inline: 0 !important;;
|
|
274
|
+
max-width: 100% !important;
|
|
275
|
+
}
|
|
257
276
|
}
|
|
258
277
|
</style>
|